summaryrefslogtreecommitdiffstats
path: root/drivers/auxdisplay
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2021-06-16 16:15:48 +0200
committerMiguel Ojeda <ojeda@kernel.org>2021-07-16 07:42:35 +0200
commitf885afe28d20b66341a8f55b10367312c1d6b686 (patch)
treed9bcb6b5790744319d693fd1aba4aecc0ab76595 /drivers/auxdisplay
parentauxdisplay: charlcd: Drop unneeded initializers and switch to C99 style (diff)
downloadlinux-f885afe28d20b66341a8f55b10367312c1d6b686.tar.xz
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.c14
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>");