Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 38b25adc authored by Sachin Kamat's avatar Sachin Kamat Committed by Mauro Carvalho Chehab
Browse files

[media] pci: cx88-mpeg: Use module_pci_driver



module_pci_driver removes some boilerplate and makes code simpler.

Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 59963b94
Loading
Loading
Loading
Loading
+1 −13
Original line number Diff line number Diff line
@@ -903,20 +903,8 @@ static struct pci_driver cx8802_pci_driver = {
	.remove   = cx8802_remove,
};

static int __init cx8802_init(void)
{
	printk(KERN_INFO "cx88/2: cx2388x MPEG-TS Driver Manager version %s loaded\n",
	       CX88_VERSION);
	return pci_register_driver(&cx8802_pci_driver);
}

static void __exit cx8802_fini(void)
{
	pci_unregister_driver(&cx8802_pci_driver);
}
module_pci_driver(cx8802_pci_driver);

module_init(cx8802_init);
module_exit(cx8802_fini);
EXPORT_SYMBOL(cx8802_buf_prepare);
EXPORT_SYMBOL(cx8802_buf_queue);
EXPORT_SYMBOL(cx8802_cancel_buffers);