mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
Input: misc - 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:
@@ -100,19 +100,7 @@ static struct platform_driver rb532_button_driver = {
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
|
||||
static int __init rb532_button_init(void)
|
||||
{
|
||||
return platform_driver_register(&rb532_button_driver);
|
||||
}
|
||||
|
||||
static void __exit rb532_button_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&rb532_button_driver);
|
||||
}
|
||||
|
||||
module_init(rb532_button_init);
|
||||
module_exit(rb532_button_exit);
|
||||
module_platform_driver(rb532_button_driver);
|
||||
|
||||
MODULE_AUTHOR("Phil Sutter <n0-1@freewrt.org>");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
Reference in New Issue
Block a user