Commit ecef5cc3 authored by Libo Chen's avatar Libo Chen Committed by Mauro Carvalho Chehab

[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: default avatarLibo Chen <libo.chen@huawei.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 2c5f81d2
...@@ -260,18 +260,7 @@ static struct pci_driver hopper_pci_driver = { ...@@ -260,18 +260,7 @@ static struct pci_driver hopper_pci_driver = {
.remove = hopper_pci_remove, .remove = hopper_pci_remove,
}; };
static int hopper_init(void) module_pci_driver(hopper_pci_driver);
{
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_DESCRIPTION("HOPPER driver"); MODULE_DESCRIPTION("HOPPER driver");
MODULE_AUTHOR("Manu Abraham"); MODULE_AUTHOR("Manu Abraham");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment