|
@@ -458,6 +458,8 @@ void xgbe_deconfig_netdev(struct xgbe_prv_data *pdata)
|
|
if (IS_REACHABLE(CONFIG_PTP_1588_CLOCK))
|
|
if (IS_REACHABLE(CONFIG_PTP_1588_CLOCK))
|
|
xgbe_ptp_unregister(pdata);
|
|
xgbe_ptp_unregister(pdata);
|
|
|
|
|
|
|
|
+ unregister_netdev(netdev);
|
|
|
|
+
|
|
pdata->phy_if.phy_exit(pdata);
|
|
pdata->phy_if.phy_exit(pdata);
|
|
|
|
|
|
flush_workqueue(pdata->an_workqueue);
|
|
flush_workqueue(pdata->an_workqueue);
|
|
@@ -465,8 +467,6 @@ void xgbe_deconfig_netdev(struct xgbe_prv_data *pdata)
|
|
|
|
|
|
flush_workqueue(pdata->dev_workqueue);
|
|
flush_workqueue(pdata->dev_workqueue);
|
|
destroy_workqueue(pdata->dev_workqueue);
|
|
destroy_workqueue(pdata->dev_workqueue);
|
|
-
|
|
|
|
- unregister_netdev(netdev);
|
|
|
|
}
|
|
}
|
|
|
|
|
|
static int __init xgbe_mod_init(void)
|
|
static int __init xgbe_mod_init(void)
|