mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-22 13:54:57 +08:00
Video / cobalt_lcdfb: Use module_platform_driver() to simplify code
Convert to module_platform_driver() to simplify code. Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:
parent
44f544f752
commit
be75b5b535
@ -395,19 +395,7 @@ static struct platform_driver cobalt_lcdfb_driver = {
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
|
||||
static int __init cobalt_lcdfb_init(void)
|
||||
{
|
||||
return platform_driver_register(&cobalt_lcdfb_driver);
|
||||
}
|
||||
|
||||
static void __exit cobalt_lcdfb_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&cobalt_lcdfb_driver);
|
||||
}
|
||||
|
||||
module_init(cobalt_lcdfb_init);
|
||||
module_exit(cobalt_lcdfb_exit);
|
||||
module_platform_driver(cobalt_lcdfb_driver);
|
||||
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_AUTHOR("Yoichi Yuasa");
|
||||
|
Loading…
Reference in New Issue
Block a user