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>
This commit is contained in:
parent
ac8c8fa0a8
commit
f885afe28d
@ -167,19 +167,7 @@ static struct parport_driver ks0108_parport_driver = {
|
|||||||
.detach = ks0108_parport_detach,
|
.detach = ks0108_parport_detach,
|
||||||
.devmodel = true,
|
.devmodel = true,
|
||||||
};
|
};
|
||||||
|
module_parport_driver(ks0108_parport_driver);
|
||||||
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_LICENSE("GPL v2");
|
MODULE_LICENSE("GPL v2");
|
||||||
MODULE_AUTHOR("Miguel Ojeda <ojeda@kernel.org>");
|
MODULE_AUTHOR("Miguel Ojeda <ojeda@kernel.org>");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user