summaryrefslogtreecommitdiffstats
path: root/drivers/media/radio
diff options
context:
space:
mode:
authorLibo Chen <libo.chen@huawei.com>2013-05-26 22:31:59 -0300
committerMauro Carvalho Chehab <m.chehab@samsung.com>2013-07-26 13:26:50 -0300
commit725d7b7139e990c802874a0c440f9914b41c11e6 (patch)
tree31238c5e27151325da791ca98aaee4744dccfe63 /drivers/media/radio
parent578e99d6cd98c58b68d9c3ad22b4e0c1528a2826 (diff)
downloadblackbird-op-linux-725d7b7139e990c802874a0c440f9914b41c11e6.tar.gz
blackbird-op-linux-725d7b7139e990c802874a0c440f9914b41c11e6.zip
[media] drivers/media/radio/radio-maxiradio: Convert to module_pci_driver
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>
Diffstat (limited to 'drivers/media/radio')
-rw-r--r--drivers/media/radio/radio-maxiradio.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/media/radio/radio-maxiradio.c b/drivers/media/radio/radio-maxiradio.c
index bd4d3a7cdadd..1d1c9e1d386e 100644
--- a/drivers/media/radio/radio-maxiradio.c
+++ b/drivers/media/radio/radio-maxiradio.c
@@ -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);
OpenPOWER on IntegriCloud