]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drivers/media/pci/mantis/mantis_cards.c: convert to module_pci_driver
authorLibo Chen <clbchenlibo.chen@huawei.com>
Wed, 19 Jun 2013 00:05:25 +0000 (10:05 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:12:41 +0000 (17:12 +1000)
Signed-off-by: Libo Chen <libo.chen@huawei.com>
Cc: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/media/pci/mantis/mantis_cards.c

index 932a0d73a7f8f7d40b5d447f9d88f49fb60d6b4c..801fc55b61679a944c43e6616c6fbf36c18cb5c6 100644 (file)
@@ -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");