mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user