Skip to content

Commit 416377e

Browse files
sfrothwelldavem330
authored andcommitted
macb: Fix merge error.
The code removed by commit 421d9df ("net/macb: merge at91_ether driver into macb driver") should be removed in the merge resolution as well. Signed-off-by: David S. Miller <[email protected]>
1 parent 3ec320d commit 416377e

File tree

1 file changed

+0
-16
lines changed
  • drivers/net/ethernet/cadence

1 file changed

+0
-16
lines changed

drivers/net/ethernet/cadence/macb.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2131,24 +2131,8 @@ static const struct net_device_ops macb_netdev_ops = {
21312131
*/
21322132
static void macb_configure_caps(struct macb *bp)
21332133
{
2134-
const struct of_device_id *match;
2135-
const struct macb_config *config;
21362134
u32 dcfg;
21372135

2138-
if (bp->pdev->dev.of_node) {
2139-
match = of_match_node(macb_dt_ids, bp->pdev->dev.of_node);
2140-
if (match && match->data) {
2141-
config = match->data;
2142-
2143-
bp->caps = config->caps;
2144-
/*
2145-
* As we have access to the matching node, configure
2146-
* DMA burst length as well
2147-
*/
2148-
bp->dma_burst_length = config->dma_burst_length;
2149-
}
2150-
}
2151-
21522136
if (MACB_BFEXT(IDNUM, macb_readl(bp, MID)) == 0x2)
21532137
bp->caps |= MACB_CAPS_MACB_IS_GEM;
21542138

0 commit comments

Comments
 (0)