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: Otavio Salvador <otavio@debian.org> Signed-off-by: Michael Krufky <mkrufky@m1k.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
This commit is contained in:
Родитель
e64a86ee2b
Коммит
2304759d7e
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче