aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/mantis
diff options
context:
space:
mode:
authorLibo Chen <libo.chen@huawei.com>2013-05-26 21:31:46 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-06-17 12:14:15 -0400
commitecef5cc35aefd5bf85abaef9cba74e8ee5a6793a (patch)
tree1ab6814a633d2a8a1af5813155213b1a6b3a8d67 /drivers/media/pci/mantis
parent2c5f81d29c946165ae01c15e70b1bf2e16929009 (diff)
[media] drivers/media/pci/mantis/hopper_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')
-rw-r--r--drivers/media/pci/mantis/hopper_cards.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/media/pci/mantis/hopper_cards.c b/drivers/media/pci/mantis/hopper_cards.c
index 6fe9fe5293dc..104914a5bf06 100644
--- a/drivers/media/pci/mantis/hopper_cards.c
+++ b/drivers/media/pci/mantis/hopper_cards.c
@@ -260,18 +260,7 @@ static struct pci_driver hopper_pci_driver = {
260 .remove = hopper_pci_remove, 260 .remove = hopper_pci_remove,
261}; 261};
262 262
263static int hopper_init(void) 263module_pci_driver(hopper_pci_driver);
264{
265 return pci_register_driver(&hopper_pci_driver);
266}
267
268static void hopper_exit(void)
269{
270 return pci_unregister_driver(&hopper_pci_driver);
271}
272
273module_init(hopper_init);
274module_exit(hopper_exit);
275 264
276MODULE_DESCRIPTION("HOPPER driver"); 265MODULE_DESCRIPTION("HOPPER driver");
277MODULE_AUTHOR("Manu Abraham"); 266MODULE_AUTHOR("Manu Abraham");