浏览代码

V4L/DVB (5416): Use pci_register_driver instead of pci_module_init in ivtv.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Hans Verkuil 18 年之前
父节点
当前提交
6773c1c24d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/media/video/ivtv/ivtv-driver.c

+ 1 - 1
drivers/media/video/ivtv/ivtv-driver.c

@@ -1333,7 +1333,7 @@ static int module_start(void)
 		printk(KERN_INFO "ivtv:  debug value must be >= 0 and <= 511!\n");
 		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");
 		printk(KERN_ERR "ivtv:  Error detecting PCI card\n");
 		return -ENODEV;
 		return -ENODEV;
 	}
 	}