Commit e75e8cac authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman

staging: vt6655: use module_pci_driver helper

Remove  vt6655_init_module and vt6655_cleanup_module and replace
module_pci_driver
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b51c8817
...@@ -1878,19 +1878,4 @@ static struct pci_driver device_driver = { ...@@ -1878,19 +1878,4 @@ static struct pci_driver device_driver = {
#endif #endif
}; };
static int __init vt6655_init_module(void) module_pci_driver(device_driver);
{
int ret;
ret = pci_register_driver(&device_driver);
return ret;
}
static void __exit vt6655_cleanup_module(void)
{
pci_unregister_driver(&device_driver);
}
module_init(vt6655_init_module);
module_exit(vt6655_cleanup_module);
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