[media] drivers/media/pci/mantis/hopper_cards: Convert to module_pci_driver
authorLibo Chen <libo.chen@huawei.com>
Mon, 27 May 2013 01:31:46 +0000 (22:31 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 17 Jun 2013 16:14:15 +0000 (13:14 -0300)
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>
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");