Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122435
b: refs/heads/master
c: a316084
h: refs/heads/master
i:
  122433: 8824dc2
  122431: 71329ab
v: v3
  • Loading branch information
Andrew Morton authored and David S. Miller committed Dec 4, 2008
1 parent e2759b3 commit 437862d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fd568fc3fe46fd87087717811d2f9ed27bb71558
refs/heads/master: a316084c2f18fd5371f81cfcfc8348a71c4a6fe8
14 changes: 7 additions & 7 deletions trunk/drivers/net/smc911x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
if (!pd) {
ret = -EINVAL;
goto release_both;
{
struct smc911x_platdata *pd = pdev->dev.platform_data;
if (!pd) {
ret = -EINVAL;
goto release_both;
}
memcpy(&lp->cfg, pd, sizeof(lp->cfg));
}
memcpy(&lp->cfg, pd, sizeof(lp->cfg));
#endif

addr = ioremap(res->start, SMC911X_IO_EXTENT);
Expand Down

0 comments on commit 437862d

Please sign in to comment.