]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
macb: Fix merge error.
authorStephen Rothwell <sfr@canb.auug.org.au>
Tue, 10 Mar 2015 22:33:49 +0000 (18:33 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Mar 2015 22:33:49 +0000 (18:33 -0400)
The code removed by commit 421d9df0628b ("net/macb: merge
at91_ether driver into macb driver") should be removed
in the merge resolution as well.

Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb.c

index f032e2a245b0f8ccd14c201de6003911d82917c4..f00be585f6618b6bc9a6772e04ea2e316ed789ee 100644 (file)
@@ -2131,24 +2131,8 @@ static const struct net_device_ops macb_netdev_ops = {
  */
 static void macb_configure_caps(struct macb *bp)
 {
  */
 static void macb_configure_caps(struct macb *bp)
 {
-       const struct of_device_id *match;
-       const struct macb_config *config;
        u32 dcfg;
 
        u32 dcfg;
 
-       if (bp->pdev->dev.of_node) {
-               match = of_match_node(macb_dt_ids, bp->pdev->dev.of_node);
-               if (match && match->data) {
-                       config = match->data;
-
-                       bp->caps = config->caps;
-                       /*
-                        * As we have access to the matching node, configure
-                        * DMA burst length as well
-                        */
-                       bp->dma_burst_length = config->dma_burst_length;
-               }
-       }
-
        if (MACB_BFEXT(IDNUM, macb_readl(bp, MID)) == 0x2)
                bp->caps |= MACB_CAPS_MACB_IS_GEM;
 
        if (MACB_BFEXT(IDNUM, macb_readl(bp, MID)) == 0x2)
                bp->caps |= MACB_CAPS_MACB_IS_GEM;