V4L/DVB (5416): Use pci_register_driver instead of pci_module_init in ivtv.
authorHans Verkuil <hverkuil@xs4all.nl>
Sat, 10 Mar 2007 23:34:54 +0000 (20:34 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 27 Apr 2007 18:44:32 +0000 (15:44 -0300)
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/ivtv/ivtv-driver.c

index 4fe42258b214fc23ee55c7c6ae33e3f764b5f712..7058aa25ac9c5c9ce030333b7533f27f789edc9b 100644 (file)
@@ -1333,7 +1333,7 @@ static int module_start(void)
                printk(KERN_INFO "ivtv:  debug value must be >= 0 and <= 511!\n");
        }
 
-       if (pci_module_init(&ivtv_pci_driver)) {
+       if (pci_register_driver(&ivtv_pci_driver)) {
                printk(KERN_ERR "ivtv:  Error detecting PCI card\n");
                return -ENODEV;
        }