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