You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
Input: keyboard - 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:
@@ -473,20 +473,7 @@ static struct platform_driver omap_kp_driver = {
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
|
||||
static int __init omap_kp_init(void)
|
||||
{
|
||||
printk(KERN_INFO "OMAP Keypad Driver\n");
|
||||
return platform_driver_register(&omap_kp_driver);
|
||||
}
|
||||
|
||||
static void __exit omap_kp_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&omap_kp_driver);
|
||||
}
|
||||
|
||||
module_init(omap_kp_init);
|
||||
module_exit(omap_kp_exit);
|
||||
module_platform_driver(omap_kp_driver);
|
||||
|
||||
MODULE_AUTHOR("Timo Teräs");
|
||||
MODULE_DESCRIPTION("OMAP Keypad Driver");
|
||||
|
||||
Reference in New Issue
Block a user