Skip to content

Commit

Permalink
auxdisplay: ks0108: Switch to use module_parport_driver()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andy Shevchenko authored and Miguel Ojeda committed Jul 16, 2021
1 parent ac8c8fa commit f885afe
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions drivers/auxdisplay/ks0108.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>");
Expand Down

0 comments on commit f885afe

Please sign in to comment.