Commit b21bb6d4 authored by Alex Briskin's avatar Alex Briskin Committed by Greg Kroah-Hartman

staging: unisys: visorinput: Add module_driver driver registration

1. Remove module_init()/module_exit() macroes and
visorbus_register_visor_driver/visorbus_unregister_visor_driver
functions.
2. Replace with a short module_driver macro
Signed-off-by: default avatarAlex Briskin <br.shurik@gmail.com>
Acked-by: default avatarDavid Kershner <david.kershner@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8eff21bc
...@@ -727,18 +727,8 @@ static struct visor_driver visorinput_driver = { ...@@ -727,18 +727,8 @@ static struct visor_driver visorinput_driver = {
.resume = visorinput_resume, .resume = visorinput_resume,
}; };
static int visorinput_init(void) module_driver(visorinput_driver, visorbus_register_visor_driver,
{ visorbus_unregister_visor_driver);
return visorbus_register_visor_driver(&visorinput_driver);
}
static void visorinput_cleanup(void)
{
visorbus_unregister_visor_driver(&visorinput_driver);
}
module_init(visorinput_init);
module_exit(visorinput_cleanup);
MODULE_DEVICE_TABLE(visorbus, visorinput_channel_types); MODULE_DEVICE_TABLE(visorbus, visorinput_channel_types);
......
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