ethernet: fix for ifconfig eth0 down error

PD#163006: ethernet: fix for ifconfig eth0 down error

Change-Id: I48bfbc8fe9b824269009c8d673cd097ccb85a5e4
Signed-off-by: wenbiao zhang <wenbiao.zhang@amlogic.com>
This commit is contained in:
wenbiao zhang
2018-03-28 17:06:59 +08:00
parent d494585914
commit 2482566150

View File

@@ -1726,17 +1726,9 @@ 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);