[media] drivers/media/radio/radio-maxiradio: Convert to module_pci_driver
authorLibo Chen <libo.chen@huawei.com>
Mon, 27 May 2013 01:31:59 +0000 (22:31 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 26 Jul 2013 16:26:50 +0000 (13:26 -0300)
use module_pci_driver instead of init/exit, make code clean

Signed-off-by: Libo Chen <libo.chen@huawei.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/radio/radio-maxiradio.c

index bd4d3a7cdadd130511cc186679124fd6231a929c..1d1c9e1d386ea4d33c2b835075947fe9b0c9b200 100644 (file)
@@ -200,15 +200,4 @@ static struct pci_driver maxiradio_driver = {
        .remove         = maxiradio_remove,
 };
 
-static int __init maxiradio_init(void)
-{
-       return pci_register_driver(&maxiradio_driver);
-}
-
-static void __exit maxiradio_exit(void)
-{
-       pci_unregister_driver(&maxiradio_driver);
-}
-
-module_init(maxiradio_init);
-module_exit(maxiradio_exit);
+module_pci_driver(maxiradio_driver);