V4L/DVB (3110): Replace all uses of pci_module_init with pci_register_driver
authorOtavio Salvador <otavio@debian.org>
Mon, 9 Jan 2006 17:25:17 +0000 (15:25 -0200)
committerMauro Carvalho Chehab <mchehab@brturbo.com.br>
Mon, 9 Jan 2006 17:25:17 +0000 (15:25 -0200)
This patch replace all calls to pci_module_init, that's deprecated and
will be removed in future, with pci_register_driver that should be
the used function now.

Signed-off-by: Otavio Salvador <otavio@debian.org>
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
drivers/media/video/bttv-driver.c
drivers/media/video/saa7134/saa7134-core.c

index 39e9178e599e09a4f7d0c6952e95166120bf1043..b93f4b5c038632b26a9eb8f1e8655667182caf1c 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)