staging: vt6655: use module_pci_driver helper

Remove  vt6655_init_module and vt6655_cleanup_module and replace
module_pci_driver

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Malcolm Priestley 2015-06-16 23:43:12 +01:00 committed by Greg Kroah-Hartman
parent b51c88171e
commit e75e8cacba
1 changed files with 1 additions and 16 deletions

View File

@ -1878,19 +1878,4 @@ static struct pci_driver device_driver = {
#endif
};
static int __init vt6655_init_module(void)
{
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);
module_pci_driver(device_driver);