mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-16 09:13:55 +08:00
[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>
This commit is contained in:
parent
2c5f81d29c
commit
ecef5cc35a
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user