summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibo Chen <libo.chen@huawei.com>2013-05-27 03:31:39 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-06-17 18:15:39 +0200
commita19b56e5bcbfb24ccd6a16f934f0c7303394bc42 (patch)
tree1d12023637aef5c50aa76fa6ffca85ff60d0d44e
parent[media] drivers/media/pci/pluto2/pluto2: Convert to module_pci_driver (diff)
downloadlinux-a19b56e5bcbfb24ccd6a16f934f0c7303394bc42.tar.xz
linux-a19b56e5bcbfb24ccd6a16f934f0c7303394bc42.zip
[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>
-rw-r--r--drivers/media/pci/mantis/mantis_cards.c13
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 = {
.remove = mantis_pci_remove,
};
-static int mantis_init(void)
-{
- return pci_register_driver(&mantis_pci_driver);
-}
-
-static void mantis_exit(void)
-{
- return pci_unregister_driver(&mantis_pci_driver);
-}
-
-module_init(mantis_init);
-module_exit(mantis_exit);
+module_pci_driver(mantis_pci_driver);
MODULE_DESCRIPTION("MANTIS driver");
MODULE_AUTHOR("Manu Abraham");