Skip to content

Commit

Permalink
V4L/DVB (3110): Replace all uses of pci_module_init with pci_register…
Browse files Browse the repository at this point in the history
…_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>
  • Loading branch information
Otavio Salvador authored and Mauro Carvalho Chehab committed Jan 9, 2006
1 parent e64a86e commit 2304759
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/media/video/bttv-driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/video/saa7134/saa7134-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2304759

Please sign in to comment.