diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2021-07-20 00:56:57 +0300 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2021-07-20 00:59:36 +0300 |
commit | 133b6558c75566bf692460fd1a09b3b795ef2c1a (patch) | |
tree | 2da37e84ab8c45ade9ecbb419ef7bb62928e095c /drivers/input | |
parent | 81c7c0a350bfe9306ad9fb10356534ede8f4ab31 (diff) | |
download | linux-133b6558c75566bf692460fd1a09b3b795ef2c1a.tar.xz |
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>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/serio/parkbd.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/input/serio/parkbd.c b/drivers/input/serio/parkbd.c index 3ac57a91ede4..51b68501896c 100644 --- a/drivers/input/serio/parkbd.c +++ b/drivers/input/serio/parkbd.c @@ -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); |