diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2021-06-16 17:15:48 +0300 |
---|---|---|
committer | Miguel Ojeda <ojeda@kernel.org> | 2021-07-16 07:42:35 +0200 |
commit | f885afe28d20b66341a8f55b10367312c1d6b686 (patch) | |
tree | d9bcb6b5790744319d693fd1aba4aecc0ab76595 /drivers/auxdisplay | |
parent | ac8c8fa0a8c3a7bc0a9a9cc44ab3650d98662754 (diff) | |
download | linux-f885afe28d20b66341a8f55b10367312c1d6b686.tar.gz linux-f885afe28d20b66341a8f55b10367312c1d6b686.tar.bz2 linux-f885afe28d20b66341a8f55b10367312c1d6b686.zip |
auxdisplay: ks0108: 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>
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'drivers/auxdisplay')
-rw-r--r-- | drivers/auxdisplay/ks0108.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/auxdisplay/ks0108.c b/drivers/auxdisplay/ks0108.c index 03c95ad4216c..da9abfbb6d33 100644 --- a/drivers/auxdisplay/ks0108.c +++ b/drivers/auxdisplay/ks0108.c @@ -167,19 +167,7 @@ static struct parport_driver ks0108_parport_driver = { .detach = ks0108_parport_detach, .devmodel = true, }; - -static int __init ks0108_init(void) -{ - return parport_register_driver(&ks0108_parport_driver); -} - -static void __exit ks0108_exit(void) -{ - parport_unregister_driver(&ks0108_parport_driver); -} - -module_init(ks0108_init); -module_exit(ks0108_exit); +module_parport_driver(ks0108_parport_driver); MODULE_LICENSE("GPL v2"); MODULE_AUTHOR("Miguel Ojeda <ojeda@kernel.org>"); |