diff options
Diffstat (limited to 'drivers/net/smc9194.c')
-rw-r--r-- | drivers/net/smc9194.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/net/smc9194.c b/drivers/net/smc9194.c index f86697da04d6..6cf16f322ad5 100644 --- a/drivers/net/smc9194.c +++ b/drivers/net/smc9194.c | |||
@@ -732,12 +732,9 @@ static int ifport; | |||
732 | struct net_device * __init smc_init(int unit) | 732 | struct net_device * __init smc_init(int unit) |
733 | { | 733 | { |
734 | struct net_device *dev = alloc_etherdev(sizeof(struct smc_local)); | 734 | struct net_device *dev = alloc_etherdev(sizeof(struct smc_local)); |
735 | static struct devlist *smcdev = smc_devlist; | 735 | struct devlist *smcdev = smc_devlist; |
736 | int err = 0; | 736 | int err = 0; |
737 | 737 | ||
738 | #ifndef NO_AUTOPROBE | ||
739 | smcdev = smc_devlist; | ||
740 | #endif | ||
741 | if (!dev) | 738 | if (!dev) |
742 | return ERR_PTR(-ENODEV); | 739 | return ERR_PTR(-ENODEV); |
743 | 740 | ||
@@ -1607,7 +1604,7 @@ MODULE_PARM_DESC(io, "SMC 99194 I/O base address"); | |||
1607 | MODULE_PARM_DESC(irq, "SMC 99194 IRQ number"); | 1604 | MODULE_PARM_DESC(irq, "SMC 99194 IRQ number"); |
1608 | MODULE_PARM_DESC(ifport, "SMC 99194 interface port (0-default, 1-TP, 2-AUI)"); | 1605 | MODULE_PARM_DESC(ifport, "SMC 99194 interface port (0-default, 1-TP, 2-AUI)"); |
1609 | 1606 | ||
1610 | int init_module(void) | 1607 | int __init init_module(void) |
1611 | { | 1608 | { |
1612 | if (io == 0) | 1609 | if (io == 0) |
1613 | printk(KERN_WARNING | 1610 | printk(KERN_WARNING |