X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fnet%2Feexpress.c;h=335fde87fce7b8e977e65688b806adb03d35de87;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=24663cb1c11be8445c0334953989e41152351a43;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/drivers/net/eexpress.c b/drivers/net/eexpress.c index 24663cb1c..335fde87f 100644 --- a/drivers/net/eexpress.c +++ b/drivers/net/eexpress.c @@ -115,9 +115,9 @@ #include #include #include +#include #include -#include #include #include @@ -230,7 +230,7 @@ static unsigned short start_code[] = { /* maps irq number to EtherExpress magic value */ static char irqrmap[] = { 0,0,1,2,3,4,0,0,0,1,5,6,0,0,0,0 }; -#ifdef CONFIG_MCA +#ifdef CONFIG_MCA_LEGACY /* mapping of the first four bits of the second POS register */ static unsigned short mca_iomap[] = { 0x270, 0x260, 0x250, 0x240, 0x230, 0x220, 0x210, 0x200, @@ -345,7 +345,7 @@ static int __init do_express_probe(struct net_device *dev) dev->if_port = 0xff; /* not set */ -#ifdef CONFIG_MCA +#ifdef CONFIG_MCA_LEGACY if (MCA_bus) { int slot = 0; @@ -423,6 +423,7 @@ static int __init do_express_probe(struct net_device *dev) return -ENODEV; } +#ifndef MODULE struct net_device * __init express_probe(int unit) { struct net_device *dev = alloc_etherdev(sizeof(struct net_local)); @@ -443,6 +444,7 @@ struct net_device * __init express_probe(int unit) free_netdev(dev); return ERR_PTR(err); } +#endif /* * open and initialize the adapter, ready for use @@ -1689,8 +1691,8 @@ static struct net_device *dev_eexp[EEXP_MAX_CARDS]; static int irq[EEXP_MAX_CARDS]; static int io[EEXP_MAX_CARDS]; -MODULE_PARM(io, "1-" __MODULE_STRING(EEXP_MAX_CARDS) "i"); -MODULE_PARM(irq, "1-" __MODULE_STRING(EEXP_MAX_CARDS) "i"); +module_param_array(io, int, NULL, 0); +module_param_array(irq, int, NULL, 0); MODULE_PARM_DESC(io, "EtherExpress 16 I/O base address(es)"); MODULE_PARM_DESC(irq, "EtherExpress 16 IRQ number(s)"); MODULE_LICENSE("GPL");