Skip to contentSkip to conversation

drivers/char/ieee1394/*: convert to pci_register_driver

PATCH New Christophe Lucas 1 participant 1 message Feb 8, 2005 Kernel janitors

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/char/ieee1394/*: convert to pci_register_driver

Hi,

Description:
convert from pci_module_init to pci_register_driver

Signature · 1 line
Christophe
drivers/ieee1394/ohci1394.c +1 -1
diff -urpN -X /work/users/dontdiff linux-2.6.11-rc3-vanilla/drivers/ieee1394/ohci1394.c linux-2.6.11-rc3/drivers/ieee1394/ohci1394.c
@@ -3676,7 +3676,7 @@ static void __exit ohci1394_cleanup (voi
 
 static int __init ohci1394_init(void)
 {
-	return pci_module_init(&ohci1394_pci_driver);
+	return pci_register_driver(&ohci1394_pci_driver);
 }
 
 module_init(ohci1394_init);
drivers/ieee1394/pcilynx.c +1 -1
diff -urpN -X /work/users/dontdiff linux-2.6.11-rc3-vanilla/drivers/ieee1394/pcilynx.c linux-2.6.11-rc3/drivers/ieee1394/pcilynx.c
@@ -1938,7 +1938,7 @@ static int __init pcilynx_init(void)
         }
 #endif
 
-        ret = pci_module_init(&lynx_pci_driver);
+        ret = pci_register_driver(&lynx_pci_driver);
         if (ret < 0) {
                 PRINT_G(KERN_ERR, "PCI module init failed");
                 goto free_char_dev;

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors