[PATCH] trivial missing __init in drivers/net/*

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro 2006-06-14 18:50:53 -04:00
parent 059807755c
commit afc8eb46c0
33 changed files with 37 additions and 37 deletions

View File

@ -922,7 +922,7 @@ int __init init_module(void)
* and then free up the resources we took when the card was found. * and then free up the resources we took when the card was found.
*/ */
void cleanup_module(void) void __exit cleanup_module(void)
{ {
struct net_device *dev = dev_3c501; struct net_device *dev = dev_3c501;
unregister_netdev(dev); unregister_netdev(dev);

View File

@ -726,7 +726,7 @@ static void cleanup_card(struct net_device *dev)
iounmap(ei_status.mem); iounmap(ei_status.mem);
} }
void void __exit
cleanup_module(void) cleanup_module(void)
{ {
int this_dev; int this_dev;

View File

@ -1670,7 +1670,7 @@ int __init init_module(void)
return 0; return 0;
} }
void cleanup_module(void) void __exit cleanup_module(void)
{ {
int this_dev; int this_dev;

View File

@ -940,7 +940,7 @@ int __init init_module(void)
return IS_ERR(dev_3c507) ? PTR_ERR(dev_3c507) : 0; return IS_ERR(dev_3c507) ? PTR_ERR(dev_3c507) : 0;
} }
void void __exit
cleanup_module(void) cleanup_module(void)
{ {
struct net_device *dev = dev_3c507; struct net_device *dev = dev_3c507;

View File

@ -1302,7 +1302,7 @@ int __init init_module(void)
} else return 0; } else return 0;
} }
void cleanup_module(void) void __exit cleanup_module(void)
{ {
int this_dev; int this_dev;
for (this_dev=0; this_dev<MAX_3C523_CARDS; this_dev++) { for (this_dev=0; this_dev<MAX_3C523_CARDS; this_dev++) {

View File

@ -1659,7 +1659,7 @@ int __init init_module(void)
* transmit operations are allowed to start scribbling into memory. * transmit operations are allowed to start scribbling into memory.
*/ */
void cleanup_module(void) void __exit cleanup_module(void)
{ {
unregister_netdev(this_device); unregister_netdev(this_device);
cleanup_card(this_device); cleanup_card(this_device);

View File

@ -405,7 +405,7 @@ static void cleanup_card(struct net_device *dev)
iounmap(ei_status.mem); iounmap(ei_status.mem);
} }
void void __exit
cleanup_module(void) cleanup_module(void)
{ {
int this_dev; int this_dev;

View File

@ -568,7 +568,7 @@ static irqreturn_t apne_interrupt(int irq, void *dev_id)
#ifdef MODULE #ifdef MODULE
static struct net_device *apne_dev; static struct net_device *apne_dev;
int init_module(void) int __init init_module(void)
{ {
apne_dev = apne_probe(-1); apne_dev = apne_probe(-1);
if (IS_ERR(apne_dev)) if (IS_ERR(apne_dev))
@ -576,7 +576,7 @@ int init_module(void)
return 0; return 0;
} }
void cleanup_module(void) void __exit cleanup_module(void)
{ {
unregister_netdev(apne_dev); unregister_netdev(apne_dev);

View File

@ -1041,7 +1041,7 @@ int __init init_module(void)
return 0; return 0;
} }
void cleanup_module(void) void __exit cleanup_module(void)
{ {
unregister_netdev(cops_dev); unregister_netdev(cops_dev);
cleanup_card(cops_dev); cleanup_card(cops_dev);

View File

@ -908,7 +908,7 @@ int __init init_module(void)
return 0; return 0;
} }
void void __exit
cleanup_module(void) cleanup_module(void)
{ {
unregister_netdev(dev_at1700); unregister_netdev(dev_at1700);

View File

@ -1179,7 +1179,7 @@ static int lance_set_mac_address( struct net_device *dev, void *addr )
#ifdef MODULE #ifdef MODULE
static struct net_device *atarilance_dev; static struct net_device *atarilance_dev;
int init_module(void) int __init init_module(void)
{ {
atarilance_dev = atarilance_probe(-1); atarilance_dev = atarilance_probe(-1);
if (IS_ERR(atarilance_dev)) if (IS_ERR(atarilance_dev))
@ -1187,7 +1187,7 @@ int init_module(void)
return 0; return 0;
} }
void cleanup_module(void) void __exit cleanup_module(void)
{ {
unregister_netdev(atarilance_dev); unregister_netdev(atarilance_dev);
free_irq(atarilance_dev->irq, atarilance_dev); free_irq(atarilance_dev->irq, atarilance_dev);

View File

@ -1974,7 +1974,7 @@ out:
return ret; return ret;
} }
void void __exit
cleanup_module(void) cleanup_module(void)
{ {
unregister_netdev(dev_cs89x0); unregister_netdev(dev_cs89x0);

View File

@ -463,7 +463,7 @@ static void cleanup_card(struct net_device *dev)
release_region(dev->base_addr, E21_IO_EXTENT); release_region(dev->base_addr, E21_IO_EXTENT);
} }
void void __exit
cleanup_module(void) cleanup_module(void)
{ {
int this_dev; int this_dev;

View File

@ -1827,7 +1827,7 @@ int __init init_module(void)
return n_eepro ? 0 : -ENODEV; return n_eepro ? 0 : -ENODEV;
} }
void void __exit
cleanup_module(void) cleanup_module(void)
{ {
int i; int i;

View File

@ -1719,7 +1719,7 @@ int __init init_module(void)
return -ENXIO; return -ENXIO;
} }
void cleanup_module(void) void __exit cleanup_module(void)
{ {
int this_dev; int this_dev;

View File

@ -455,7 +455,7 @@ static void cleanup_card(struct net_device *dev)
iounmap(ei_status.mem); iounmap(ei_status.mem);
} }
void void __exit
cleanup_module(void) cleanup_module(void)
{ {
int this_dev; int this_dev;

View File

@ -1475,7 +1475,7 @@ int __init init_module(void)
return -ENXIO; return -ENXIO;
} }
void cleanup_module(void) void __exit cleanup_module(void)
{ {
int this_dev; int this_dev;

View File

@ -482,7 +482,7 @@ static void cleanup_card(struct net_device *dev)
release_region(dev->base_addr - NIC_OFFSET, HP_IO_EXTENT); release_region(dev->base_addr - NIC_OFFSET, HP_IO_EXTENT);
} }
void void __exit
cleanup_module(void) cleanup_module(void)
{ {
int this_dev; int this_dev;

View File

@ -444,7 +444,7 @@ static void cleanup_card(struct net_device *dev)
release_region(dev->base_addr - NIC_OFFSET, HP_IO_EXTENT); release_region(dev->base_addr - NIC_OFFSET, HP_IO_EXTENT);
} }
void void __exit
cleanup_module(void) cleanup_module(void)
{ {
int this_dev; int this_dev;

View File

@ -368,7 +368,7 @@ static void cleanup_card(struct net_device *dev)
kfree(lp); kfree(lp);
} }
void cleanup_module(void) void __exit cleanup_module(void)
{ {
int this_dev; int this_dev;

View File

@ -440,7 +440,7 @@ static void cleanup_card(struct net_device *dev)
iounmap(ei_status.mem); iounmap(ei_status.mem);
} }
void cleanup_module(void) void __exit cleanup_module(void)
{ {
int this_dev; int this_dev;

View File

@ -184,7 +184,7 @@ static int m147lance_close(struct net_device *dev)
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
static struct net_device *dev_mvme147_lance; static struct net_device *dev_mvme147_lance;
int init_module(void) int __init init_module(void)
{ {
dev_mvme147_lance = mvme147lance_probe(-1); dev_mvme147_lance = mvme147lance_probe(-1);
if (IS_ERR(dev_mvme147_lance)) if (IS_ERR(dev_mvme147_lance))
@ -192,7 +192,7 @@ int init_module(void)
return 0; return 0;
} }
void cleanup_module(void) void __exit cleanup_module(void)
{ {
struct m147lance_private *lp = dev_mvme147_lance->priv; struct m147lance_private *lp = dev_mvme147_lance->priv;
unregister_netdev(dev_mvme147_lance); unregister_netdev(dev_mvme147_lance);

View File

@ -867,7 +867,7 @@ static void cleanup_card(struct net_device *dev)
release_region(dev->base_addr, NE_IO_EXTENT); release_region(dev->base_addr, NE_IO_EXTENT);
} }
void cleanup_module(void) void __exit cleanup_module(void)
{ {
int this_dev; int this_dev;

View File

@ -813,7 +813,7 @@ static void cleanup_card(struct net_device *dev)
release_region(dev->base_addr, NE_IO_EXTENT); release_region(dev->base_addr, NE_IO_EXTENT);
} }
void cleanup_module(void) void __exit cleanup_module(void)
{ {
int this_dev; int this_dev;

View File

@ -1335,7 +1335,7 @@ int __init init_module(void)
return 0; return 0;
} }
void cleanup_module(void) void __exit cleanup_module(void)
{ {
unregister_netdev(dev_ni52); unregister_netdev(dev_ni52);
release_region(dev_ni52->base_addr, NI52_TOTAL_SIZE); release_region(dev_ni52->base_addr, NI52_TOTAL_SIZE);

View File

@ -1259,7 +1259,7 @@ int __init init_module(void)
return IS_ERR(dev_ni65) ? PTR_ERR(dev_ni65) : 0; return IS_ERR(dev_ni65) ? PTR_ERR(dev_ni65) : 0;
} }
void cleanup_module(void) void __exit cleanup_module(void)
{ {
unregister_netdev(dev_ni65); unregister_netdev(dev_ni65);
cleanup_card(dev_ni65); cleanup_card(dev_ni65);

View File

@ -750,7 +750,7 @@ int __init init_module(void)
return 0; return 0;
} }
void cleanup_module(void) void __exit cleanup_module(void)
{ {
unregister_netdev(dev_seeq); unregister_netdev(dev_seeq);
release_region(dev_seeq->base_addr, SEEQ8005_IO_EXTENT); release_region(dev_seeq->base_addr, SEEQ8005_IO_EXTENT);

View File

@ -593,7 +593,7 @@ static void cleanup_card(struct net_device *dev)
iounmap(ei_status.mem); iounmap(ei_status.mem);
} }
void void __exit
cleanup_module(void) cleanup_module(void)
{ {
int this_dev; int this_dev;

View File

@ -437,7 +437,7 @@ int __init init_module(void)
return -ENXIO; return -ENXIO;
} }
void cleanup_module(void) void __exit cleanup_module(void)
{ {
int this_dev; int this_dev;

View File

@ -1616,7 +1616,7 @@ int __init init_module(void)
return 0; return 0;
} }
void cleanup_module(void) void __exit cleanup_module(void)
{ {
unregister_netdev(devSMC9194); unregister_netdev(devSMC9194);
free_irq(devSMC9194->irq, devSMC9194); free_irq(devSMC9194->irq, devSMC9194);

View File

@ -945,7 +945,7 @@ static void set_multicast_list( struct net_device *dev )
static struct net_device *sun3lance_dev; static struct net_device *sun3lance_dev;
int init_module(void) int __init init_module(void)
{ {
sun3lance_dev = sun3lance_probe(-1); sun3lance_dev = sun3lance_probe(-1);
if (IS_ERR(sun3lance_dev)) if (IS_ERR(sun3lance_dev))
@ -953,7 +953,7 @@ int init_module(void)
return 0; return 0;
} }
void cleanup_module(void) void __exit cleanup_module(void)
{ {
unregister_netdev(sun3lance_dev); unregister_netdev(sun3lance_dev);
#ifdef CONFIG_SUN3 #ifdef CONFIG_SUN3

View File

@ -5706,7 +5706,7 @@ int __init init_module(void)
return found ? 0 : -ENODEV; return found ? 0 : -ENODEV;
} }
void cleanup_module(void) void __exit cleanup_module(void)
{ {
int i; int i;

View File

@ -538,7 +538,7 @@ static void cleanup_card(struct net_device *dev)
iounmap(ei_status.mem); iounmap(ei_status.mem);
} }
void void __exit
cleanup_module(void) cleanup_module(void)
{ {
int this_dev; int this_dev;