]> err.no Git - linux-2.6/blobdiff - drivers/net/tulip/winbond-840.c
drivers/net: Remove deprecated use of pci_module_init()
[linux-2.6] / drivers / net / tulip / winbond-840.c
index 7f414815cc624ac1f1ef1fec5f2ebfde6cd4fea7..6b82d1498223d300d1b83a3a1abf005e4e693f5e 100644 (file)
@@ -138,7 +138,7 @@ static int full_duplex[MAX_UNITS] = {-1, -1, -1, -1, -1, -1, -1, -1};
 #include <asm/irq.h>
 
 /* These identify the driver base version and may not be removed. */
-static char version[] __devinitdata =
+static char version[] =
 KERN_INFO DRV_NAME ".c:v" DRV_VERSION " (2.4 port) " DRV_RELDATE "  Donald Becker <becker@scyld.com>\n"
 KERN_INFO "  http://www.scyld.com/network/drivers.html\n";
 
@@ -1689,7 +1689,7 @@ static struct pci_driver w840_driver = {
 static int __init w840_init(void)
 {
        printk(version);
-       return pci_module_init(&w840_driver);
+       return pci_register_driver(&w840_driver);
 }
 
 static void __exit w840_exit(void)