Loading drivers/net/smc911x.c +7 −7 Original line number Diff line number Diff line Loading @@ -2048,9 +2048,6 @@ static int __devinit smc911x_probe(struct net_device *dev) */ static int __devinit smc911x_drv_probe(struct platform_device *pdev) { #ifdef SMC_DYNAMIC_BUS_CONFIG struct smc911x_platdata *pd = pdev->dev.platform_data; #endif struct net_device *ndev; struct resource *res; struct smc911x_local *lp; Loading Loading @@ -2085,11 +2082,14 @@ static int __devinit smc911x_drv_probe(struct platform_device *pdev) lp = netdev_priv(ndev); lp->netdev = ndev; #ifdef SMC_DYNAMIC_BUS_CONFIG { struct smc911x_platdata *pd = pdev->dev.platform_data; if (!pd) { ret = -EINVAL; goto release_both; } memcpy(&lp->cfg, pd, sizeof(lp->cfg)); } #endif addr = ioremap(res->start, SMC911X_IO_EXTENT); Loading Loading
drivers/net/smc911x.c +7 −7 Original line number Diff line number Diff line Loading @@ -2048,9 +2048,6 @@ static int __devinit smc911x_probe(struct net_device *dev) */ static int __devinit smc911x_drv_probe(struct platform_device *pdev) { #ifdef SMC_DYNAMIC_BUS_CONFIG struct smc911x_platdata *pd = pdev->dev.platform_data; #endif struct net_device *ndev; struct resource *res; struct smc911x_local *lp; Loading Loading @@ -2085,11 +2082,14 @@ static int __devinit smc911x_drv_probe(struct platform_device *pdev) lp = netdev_priv(ndev); lp->netdev = ndev; #ifdef SMC_DYNAMIC_BUS_CONFIG { struct smc911x_platdata *pd = pdev->dev.platform_data; if (!pd) { ret = -EINVAL; goto release_both; } memcpy(&lp->cfg, pd, sizeof(lp->cfg)); } #endif addr = ioremap(res->start, SMC911X_IO_EXTENT); Loading