aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2015-03-10 18:33:49 -0400
committerDavid S. Miller <davem@davemloft.net>2015-03-10 18:33:49 -0400
commit416377ea392823e8ea1f8a10477e7d08a9bb715e (patch)
treef68c4ea48f6a1f2a1355fa479b9b154f2b59242d /drivers/net
parent3ec320dd5c9465fbed3c84dd14ed3941ce757823 (diff)
macb: Fix merge error.
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>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/cadence/macb.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c
index f032e2a245b0..f00be585f661 100644
--- a/drivers/net/ethernet/cadence/macb.c
+++ b/drivers/net/ethernet/cadence/macb.c
@@ -2131,24 +2131,8 @@ static const struct net_device_ops macb_netdev_ops = {
2131 */ 2131 */
2132static void macb_configure_caps(struct macb *bp) 2132static void macb_configure_caps(struct macb *bp)
2133{ 2133{
2134 const struct of_device_id *match;
2135 const struct macb_config *config;
2136 u32 dcfg; 2134 u32 dcfg;
2137 2135
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
2152 if (MACB_BFEXT(IDNUM, macb_readl(bp, MID)) == 0x2) 2136 if (MACB_BFEXT(IDNUM, macb_readl(bp, MID)) == 0x2)
2153 bp->caps |= MACB_CAPS_MACB_IS_GEM; 2137 bp->caps |= MACB_CAPS_MACB_IS_GEM;
2154 2138