summaryrefslogtreecommitdiffstats
path: root/drivers/media/radio
diff options
context:
space:
mode:
authorLibo Chen <libo.chen@huawei.com>2013-05-27 03:31:59 +0200
committerMauro Carvalho Chehab <m.chehab@samsung.com>2013-07-26 18:26:50 +0200
commit725d7b7139e990c802874a0c440f9914b41c11e6 (patch)
tree31238c5e27151325da791ca98aaee4744dccfe63 /drivers/media/radio
parent[media] marvell-ccic: switch to resource managed allocation and request (diff)
downloadlinux-725d7b7139e990c802874a0c440f9914b41c11e6.tar.xz
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);