From 2482566150fe4b6d28f34fee1b4ed1aa710ea782 Mon Sep 17 00:00:00 2001 From: wenbiao zhang Date: Wed, 28 Mar 2018 17:06:59 +0800 Subject: [PATCH] ethernet: fix for ifconfig eth0 down error PD#163006: ethernet: fix for ifconfig eth0 down error Change-Id: I48bfbc8fe9b824269009c8d673cd097ccb85a5e4 Signed-off-by: wenbiao zhang --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index 0038693..c3d430f 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c @@ -1726,18 +1726,10 @@ static int stmmac_hw_setup(struct net_device *dev, bool init_ptp) } #ifdef CONFIG_DEBUG_FS -#ifdef CONFIG_AMLOGIC_ETH_PRIVE - if (!priv->dbgfs_dir) { - ret = stmmac_init_fs(dev); - if (ret < 0) - pr_warn("%s: failed debugFS registration\n", __func__); - } -#else ret = stmmac_init_fs(dev); if (ret < 0) pr_warn("%s: failed debugFS registration\n", __func__); #endif -#endif /* Start the ball rolling... */ pr_debug("%s: DMA RX/TX processes started...\n", dev->name); priv->hw->dma->start_tx(priv->ioaddr); -- 2.7.4