Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2c5f81d2 authored by Libo Chen's avatar Libo Chen Committed by Mauro Carvalho Chehab
Browse files

[media] drivers/media/pci/dm1105/dm1105: 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 e7be28cb
Loading
Loading
Loading
Loading
+1 −12
Original line number Diff line number Diff line
@@ -432,18 +432,7 @@ static struct pci_driver flexcop_pci_driver = {
	.remove   = flexcop_pci_remove,
};

static int __init flexcop_pci_module_init(void)
{
	return pci_register_driver(&flexcop_pci_driver);
}

static void __exit flexcop_pci_module_exit(void)
{
	pci_unregister_driver(&flexcop_pci_driver);
}

module_init(flexcop_pci_module_init);
module_exit(flexcop_pci_module_exit);
module_pci_driver(flexcop_pci_driver);

MODULE_AUTHOR(DRIVER_AUTHOR);
MODULE_DESCRIPTION(DRIVER_NAME);