提交 9bfab8ce 编写于 作者: R Richard Knutsson 提交者: Greg Kroah-Hartman

[PATCH] drivers/block: Replace pci_module_init() with pci_register_driver()

Replace obsolete pci_module_init() with pci_register_driver().
Signed-off-by: NRichard Knutsson <ricknu-0@student.ltu.se>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 d1d6da8f
......@@ -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();
......
......@@ -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)
......
......@@ -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)
......
......@@ -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;
......
......@@ -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 )
......
......@@ -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)
......
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册