Input: serio - use macro module_platform_driver()
Commit 940ab88962
introduced a new macro to
save some platform_driver boilerplate code. Use it.
Signed-off-by: JJ Ding <dgdunix@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
@@ -196,18 +196,7 @@ static struct platform_driver altera_ps2_driver = {
|
||||
.of_match_table = altera_ps2_match,
|
||||
},
|
||||
};
|
||||
|
||||
static int __init altera_ps2_init(void)
|
||||
{
|
||||
return platform_driver_register(&altera_ps2_driver);
|
||||
}
|
||||
module_init(altera_ps2_init);
|
||||
|
||||
static void __exit altera_ps2_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&altera_ps2_driver);
|
||||
}
|
||||
module_exit(altera_ps2_exit);
|
||||
module_platform_driver(altera_ps2_driver);
|
||||
|
||||
MODULE_DESCRIPTION("Altera University Program PS2 controller driver");
|
||||
MODULE_AUTHOR("Thomas Chou <thomas@wytron.com.tw>");
|
||||
|
Reference in New Issue
Block a user