]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drivers/media/pci/mantis/hopper_cards.c: convert to module_pci_driver
authorLibo Chen <clbchenlibo.chen@huawei.com>
Wed, 19 Jun 2013 00:05:26 +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/hopper_cards.c

index 6fe9fe5293dc79fd1c5154c0dd52dd8a543793e0..104914a5bf06ebb42a4c073b44c4e8be35b6b4b4 100644 (file)
@@ -260,18 +260,7 @@ static struct pci_driver hopper_pci_driver = {
        .remove         = hopper_pci_remove,
 };
 
-static int hopper_init(void)
-{
-       return pci_register_driver(&hopper_pci_driver);
-}
-
-static void hopper_exit(void)
-{
-       return pci_unregister_driver(&hopper_pci_driver);
-}
-
-module_init(hopper_init);
-module_exit(hopper_exit);
+module_pci_driver(hopper_pci_driver);
 
 MODULE_DESCRIPTION("HOPPER driver");
 MODULE_AUTHOR("Manu Abraham");