Commit 2304759d authored by Otavio Salvador's avatar Otavio Salvador Committed by Mauro Carvalho Chehab

V4L/DVB (3110): Replace all uses of pci_module_init with pci_register_driver

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: default avatarOtavio Salvador <otavio@debian.org>
Signed-off-by: default avatarMichael Krufky <mkrufky@m1k.net>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@brturbo.com.br>
parent e64a86ee
...@@ -4253,7 +4253,7 @@ static int bttv_init_module(void) ...@@ -4253,7 +4253,7 @@ static int bttv_init_module(void)
bttv_check_chipset(); bttv_check_chipset();
bus_register(&bttv_sub_bus_type); 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) static void bttv_cleanup_module(void)
......
...@@ -1156,7 +1156,7 @@ static int saa7134_init(void) ...@@ -1156,7 +1156,7 @@ static int saa7134_init(void)
printk(KERN_INFO "saa7130/34: snapshot date %04d-%02d-%02d\n", printk(KERN_INFO "saa7130/34: snapshot date %04d-%02d-%02d\n",
SNAPSHOT/10000, (SNAPSHOT/100)%100, SNAPSHOT%100); SNAPSHOT/10000, (SNAPSHOT/100)%100, SNAPSHOT%100);
#endif #endif
return pci_module_init(&saa7134_pci_driver); return pci_register_driver(&saa7134_pci_driver);
} }
static void saa7134_fini(void) static void saa7134_fini(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment