mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-18 11:17:07 +00:00
Input: parkbd - switch to use module_parport_driver()
Switch to use module_parport_driver() to reduce boilerplate code. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20210616140432.39406-1-andriy.shevchenko@linux.intel.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
81c7c0a350
commit
133b6558c7
@ -220,16 +220,4 @@ static struct parport_driver parkbd_parport_driver = {
|
||||
.detach = parkbd_detach,
|
||||
.devmodel = true,
|
||||
};
|
||||
|
||||
static int __init parkbd_init(void)
|
||||
{
|
||||
return parport_register_driver(&parkbd_parport_driver);
|
||||
}
|
||||
|
||||
static void __exit parkbd_exit(void)
|
||||
{
|
||||
parport_unregister_driver(&parkbd_parport_driver);
|
||||
}
|
||||
|
||||
module_init(parkbd_init);
|
||||
module_exit(parkbd_exit);
|
||||
module_parport_driver(parkbd_parport_driver);
|
||||
|
Loading…
x
Reference in New Issue
Block a user