Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40571
b: refs/heads/master
c: 9d4df9e
h: refs/heads/master
i:
  40569: 512822a
  40567: 30084cd
v: v3
  • Loading branch information
Akinobu Mita authored and Jeff Garzik committed Nov 1, 2006
1 parent 0998e18 commit 2fd9132
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 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: 06f0015ace46ce9d313ec02d6b13c47c8e795a6c
refs/heads/master: 9d4df9e0fadfc84cd826e0f7e946691b4d7baee5
9 changes: 7 additions & 2 deletions trunk/drivers/net/tokenring/proteon.c
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,10 @@ static int __init proteon_init(void)
dev->dma = dma[i];
pdev = platform_device_register_simple("proteon",
i, NULL, 0);
if (IS_ERR(pdev)) {
free_netdev(dev);
continue;
}
err = setup_card(dev, &pdev->dev);
if (!err) {
proteon_dev[i] = pdev;
Expand All @@ -385,9 +389,10 @@ static int __init proteon_init(void)
/* Probe for cards. */
if (num == 0) {
printk(KERN_NOTICE "proteon.c: No cards found.\n");
return (-ENODEV);
platform_driver_unregister(&proteon_driver);
return -ENODEV;
}
return (0);
return 0;
}

static void __exit proteon_cleanup(void)
Expand Down
9 changes: 7 additions & 2 deletions trunk/drivers/net/tokenring/skisa.c
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,10 @@ static int __init sk_isa_init(void)
dev->dma = dma[i];
pdev = platform_device_register_simple("skisa",
i, NULL, 0);
if (IS_ERR(pdev)) {
free_netdev(dev);
continue;
}
err = setup_card(dev, &pdev->dev);
if (!err) {
sk_isa_dev[i] = pdev;
Expand All @@ -395,9 +399,10 @@ static int __init sk_isa_init(void)
/* Probe for cards. */
if (num == 0) {
printk(KERN_NOTICE "skisa.c: No cards found.\n");
return (-ENODEV);
platform_driver_unregister(&sk_isa_driver);
return -ENODEV;
}
return (0);
return 0;
}

static void __exit sk_isa_cleanup(void)
Expand Down

0 comments on commit 2fd9132

Please sign in to comment.