diff options
author | Libo Chen <libo.chen@huawei.com> | 2013-05-26 21:31:39 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-06-17 12:15:39 -0400 |
commit | a19b56e5bcbfb24ccd6a16f934f0c7303394bc42 (patch) | |
tree | 1d12023637aef5c50aa76fa6ffca85ff60d0d44e /drivers/media/pci/mantis/mantis_cards.c | |
parent | 6eb2fb3170549737207974c2c6ad34bcc2f3025e (diff) |
[media] drivers/media/pci/mantis/mantis_cards: 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>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/pci/mantis/mantis_cards.c')
-rw-r--r-- | drivers/media/pci/mantis/mantis_cards.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/media/pci/mantis/mantis_cards.c b/drivers/media/pci/mantis/mantis_cards.c index 932a0d73a7f8..801fc55b6167 100644 --- a/drivers/media/pci/mantis/mantis_cards.c +++ b/drivers/media/pci/mantis/mantis_cards.c | |||
@@ -290,18 +290,7 @@ static struct pci_driver mantis_pci_driver = { | |||
290 | .remove = mantis_pci_remove, | 290 | .remove = mantis_pci_remove, |
291 | }; | 291 | }; |
292 | 292 | ||
293 | static int mantis_init(void) | 293 | module_pci_driver(mantis_pci_driver); |
294 | { | ||
295 | return pci_register_driver(&mantis_pci_driver); | ||
296 | } | ||
297 | |||
298 | static void mantis_exit(void) | ||
299 | { | ||
300 | return pci_unregister_driver(&mantis_pci_driver); | ||
301 | } | ||
302 | |||
303 | module_init(mantis_init); | ||
304 | module_exit(mantis_exit); | ||
305 | 294 | ||
306 | MODULE_DESCRIPTION("MANTIS driver"); | 295 | MODULE_DESCRIPTION("MANTIS driver"); |
307 | MODULE_AUTHOR("Manu Abraham"); | 296 | MODULE_AUTHOR("Manu Abraham"); |