aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/smc911x.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/smc911x.c')
-rw-r--r--drivers/net/smc911x.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/smc911x.c b/drivers/net/smc911x.c
index e0b972d36664..a91b7351150d 100644
--- a/drivers/net/smc911x.c
+++ b/drivers/net/smc911x.c
@@ -2048,7 +2048,9 @@ err_out:
2048 */ 2048 */
2049static int smc911x_drv_probe(struct platform_device *pdev) 2049static int smc911x_drv_probe(struct platform_device *pdev)
2050{ 2050{
2051#ifdef SMC_DYNAMIC_BUS_CONFIG
2051 struct smc911x_platdata *pd = pdev->dev.platform_data; 2052 struct smc911x_platdata *pd = pdev->dev.platform_data;
2053#endif
2052 struct net_device *ndev; 2054 struct net_device *ndev;
2053 struct resource *res; 2055 struct resource *res;
2054 struct smc911x_local *lp; 2056 struct smc911x_local *lp;
@@ -2180,9 +2182,9 @@ static int smc911x_drv_resume(struct platform_device *dev)
2180 2182
2181 if (netif_running(ndev)) { 2183 if (netif_running(ndev)) {
2182 smc911x_reset(ndev); 2184 smc911x_reset(ndev);
2183 smc911x_enable(ndev);
2184 if (lp->phy_type != 0) 2185 if (lp->phy_type != 0)
2185 smc911x_phy_configure(&lp->phy_configure); 2186 smc911x_phy_configure(&lp->phy_configure);
2187 smc911x_enable(ndev);
2186 netif_device_attach(ndev); 2188 netif_device_attach(ndev);
2187 } 2189 }
2188 } 2190 }