From: Andy Shevchenko Date: Wed, 16 Jun 2021 14:15:48 +0000 (+0300) Subject: auxdisplay: ks0108: Switch to use module_parport_driver() X-Git-Tag: v5.15~274^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f885afe28d20b66341a8f55b10367312c1d6b686;p=platform%2Fkernel%2Flinux-starfive.git auxdisplay: ks0108: Switch to use module_parport_driver() Switch to use module_parport_driver() to reduce boilerplate code. Signed-off-by: Andy Shevchenko Signed-off-by: Miguel Ojeda --- diff --git a/drivers/auxdisplay/ks0108.c b/drivers/auxdisplay/ks0108.c index 03c95ad..da9abfb 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 ");