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: 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:
@@ -264,18 +264,7 @@ static struct platform_driver bfin_rotary_device_driver = {
|
||||
#endif
|
||||
},
|
||||
};
|
||||
|
||||
static int __init bfin_rotary_init(void)
|
||||
{
|
||||
return platform_driver_register(&bfin_rotary_device_driver);
|
||||
}
|
||||
module_init(bfin_rotary_init);
|
||||
|
||||
static void __exit bfin_rotary_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&bfin_rotary_device_driver);
|
||||
}
|
||||
module_exit(bfin_rotary_exit);
|
||||
module_platform_driver(bfin_rotary_device_driver);
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>");
|
||||
|
||||
Reference in New Issue
Block a user