diff options
author | Libo Chen <libo.chen@huawei.com> | 2013-05-26 21:31:46 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-06-17 12:14:15 -0400 |
commit | ecef5cc35aefd5bf85abaef9cba74e8ee5a6793a (patch) | |
tree | 1ab6814a633d2a8a1af5813155213b1a6b3a8d67 /drivers/media/pci/mantis | |
parent | 2c5f81d29c946165ae01c15e70b1bf2e16929009 (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.c | 13 |
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 | ||
263 | static int hopper_init(void) | 263 | module_pci_driver(hopper_pci_driver); |
264 | { | ||
265 | return pci_register_driver(&hopper_pci_driver); | ||
266 | } | ||
267 | |||
268 | static void hopper_exit(void) | ||
269 | { | ||
270 | return pci_unregister_driver(&hopper_pci_driver); | ||
271 | } | ||
272 | |||
273 | module_init(hopper_init); | ||
274 | module_exit(hopper_exit); | ||
275 | 264 | ||
276 | MODULE_DESCRIPTION("HOPPER driver"); | 265 | MODULE_DESCRIPTION("HOPPER driver"); |
277 | MODULE_AUTHOR("Manu Abraham"); | 266 | MODULE_AUTHOR("Manu Abraham"); |