mirror of
https://github.com/torvalds/linux.git
synced 2024-12-12 14:12:51 +00:00
mtd: denali_dt: Use module_platform_driver()
module_platform_driver() removes some boilerplate and makes the code simpler. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
This commit is contained in:
parent
6c67050ab1
commit
82fc812ca4
@ -150,17 +150,7 @@ static struct platform_driver denali_dt_driver = {
|
||||
},
|
||||
};
|
||||
|
||||
static int __init denali_init_dt(void)
|
||||
{
|
||||
return platform_driver_register(&denali_dt_driver);
|
||||
}
|
||||
module_init(denali_init_dt);
|
||||
|
||||
static void __exit denali_exit_dt(void)
|
||||
{
|
||||
platform_driver_unregister(&denali_dt_driver);
|
||||
}
|
||||
module_exit(denali_exit_dt);
|
||||
module_platform_driver(denali_dt_driver);
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_AUTHOR("Jamie Iles");
|
||||
|
Loading…
Reference in New Issue
Block a user