diff options
author | Libo Chen <libo.chen@huawei.com> | 2013-05-27 05:31:59 +0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2013-07-26 20:26:50 +0400 |
commit | 725d7b7139e990c802874a0c440f9914b41c11e6 (patch) | |
tree | 31238c5e27151325da791ca98aaee4744dccfe63 | |
parent | 578e99d6cd98c58b68d9c3ad22b4e0c1528a2826 (diff) | |
download | linux-725d7b7139e990c802874a0c440f9914b41c11e6.tar.xz |
[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>
-rw-r--r-- | drivers/media/radio/radio-maxiradio.c | 13 |
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); |