mirror of
https://github.com/torvalds/linux.git
synced 2024-12-17 08:31:39 +00:00
[media] pci: cx88-video: Use module_pci_driver
module_pci_driver removes some boilerplate and makes code simpler. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
parent
38b25adce8
commit
06333e0aca
@ -2039,17 +2039,4 @@ static struct pci_driver cx8800_pci_driver = {
|
||||
#endif
|
||||
};
|
||||
|
||||
static int __init cx8800_init(void)
|
||||
{
|
||||
printk(KERN_INFO "cx88/0: cx2388x v4l2 driver version %s loaded\n",
|
||||
CX88_VERSION);
|
||||
return pci_register_driver(&cx8800_pci_driver);
|
||||
}
|
||||
|
||||
static void __exit cx8800_fini(void)
|
||||
{
|
||||
pci_unregister_driver(&cx8800_pci_driver);
|
||||
}
|
||||
|
||||
module_init(cx8800_init);
|
||||
module_exit(cx8800_fini);
|
||||
module_pci_driver(cx8800_pci_driver);
|
||||
|
Loading…
Reference in New Issue
Block a user