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: Alex Briskin <br.shurik@gmail.com>
Acked-by: David Kershner <david.kershner@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Alex Briskin 2017-08-25 19:25:06 +03:00 коммит произвёл Greg Kroah-Hartman
Родитель 8eff21bcc6
Коммит b21bb6d483
1 изменённых файлов: 2 добавлений и 12 удалений

Просмотреть файл

@ -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);