]> nv-tegra.nvidia Code Review - linux-2.6.git/commitdiff
[PATCH] drivers/block: Replace pci_module_init() with pci_register_driver()
authorRichard Knutsson <ricknu-0@student.ltu.se>
Tue, 29 Nov 2005 23:59:34 +0000 (00:59 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 9 Jan 2006 20:13:22 +0000 (12:13 -0800)
Replace obsolete pci_module_init() with pci_register_driver().

Signed-off-by: Richard Knutsson <ricknu-0@student.ltu.se>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/block/DAC960.c
drivers/block/cciss.c
drivers/block/sx8.c
drivers/block/umem.c
drivers/media/radio/radio-gemtek-pci.c
drivers/media/radio/radio-maxiradio.c
drivers/media/video/bttv-driver.c
drivers/media/video/saa7134/saa7134-core.c

index 4a7bb7dfce851305b4083b17ceba732729933aca..6ede1f352c2954d246ead5288a31cb181ea220df 100644 (file)
@@ -7179,7 +7179,7 @@ static int DAC960_init_module(void)
 {
        int ret;
 
-       ret =  pci_module_init(&DAC960_pci_driver);
+       ret =  pci_register_driver(&DAC960_pci_driver);
 #ifdef DAC960_GAM_MINOR
        if (!ret)
                DAC960_gam_init();
index e4e9f255bd1f709a01a58dc5d09c2e8b10684820..12d7b9bdfa93b62ae0664255d2ca7b34b911841c 100644 (file)
@@ -3360,7 +3360,7 @@ static int __init cciss_init(void)
        printk(KERN_INFO DRIVER_NAME "\n");
 
        /* Register for our PCI devices */
-       return pci_module_init(&cciss_pci_driver);
+       return pci_register_driver(&cciss_pci_driver);
 }
 
 static void __exit cciss_cleanup(void)
index c0cdc182a8b0b4fcd619ee97100d53ff4f4538db..a7e0975c8c9f9c1da047b038c38e31250e710abb 100644 (file)
@@ -1755,7 +1755,7 @@ static void carm_remove_one (struct pci_dev *pdev)
 
 static int __init carm_init(void)
 {
-       return pci_module_init(&carm_driver);
+       return pci_register_driver(&carm_driver);
 }
 
 static void __exit carm_exit(void)
index 15299e7a1ade64a23bc6d7c11781bbc89c71f69a..a3614e6a68d0b95e5c8c8904e3014af3f1b7db0c 100644 (file)
@@ -1174,7 +1174,7 @@ static int __init mm_init(void)
 
        printk(KERN_INFO DRIVER_VERSION " : " DRIVER_DESC "\n");
 
-       retval = pci_module_init(&mm_pci_driver);
+       retval = pci_register_driver(&mm_pci_driver);
        if (retval)
                return -ENOMEM;
 
index 630cc786d0a4f5065c357b150435dc1108a5dce7..78b2888bf581fcf631be2a3d9b90de2b369ab7b3 100644 (file)
@@ -394,7 +394,7 @@ static struct pci_driver gemtek_pci_driver =
 
 static int __init gemtek_pci_init_module( void )
 {
-       return pci_module_init( &gemtek_pci_driver );
+       return pci_register_driver( &gemtek_pci_driver );
 }
 
 static void __exit gemtek_pci_cleanup_module( void )
index 02d39a50d5ed2b742d6e2b65678056a249e096b7..7b33d8f2f8f8d9cc3a0676c751556f9d93e9a621 100644 (file)
@@ -337,7 +337,7 @@ static struct pci_driver maxiradio_driver = {
 
 static int __init maxiradio_radio_init(void)
 {
-       return pci_module_init(&maxiradio_driver);
+       return pci_register_driver(&maxiradio_driver);
 }
 
 static void __exit maxiradio_radio_exit(void)
index 1ddf9ba613ef96c3e8b142dd41d322c02391cb3c..00bd8ea5eaeb70db2a045299eb31c9dc2d9b8f72 100644 (file)
@@ -4253,7 +4253,7 @@ static int bttv_init_module(void)
        bttv_check_chipset();
 
        bus_register(&bttv_sub_bus_type);
-       return pci_module_init(&bttv_pci_driver);
+       return pci_register_driver(&bttv_pci_driver);
 }
 
 static void bttv_cleanup_module(void)
index 23d8747338edee3e11dfb0d8d37ea04645f21cb9..21cb3d6be839cfa3e969a155ce49a68a79020b43 100644 (file)
@@ -1156,7 +1156,7 @@ static int saa7134_init(void)
        printk(KERN_INFO "saa7130/34: snapshot date %04d-%02d-%02d\n",
               SNAPSHOT/10000, (SNAPSHOT/100)%100, SNAPSHOT%100);
 #endif
-       return pci_module_init(&saa7134_pci_driver);
+       return pci_register_driver(&saa7134_pci_driver);
 }
 
 static void saa7134_fini(void)