Video / broadsheetfb: 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:
Родитель
be75b5b535
Коммит
46fc95030d
|
@ -1217,19 +1217,7 @@ static struct platform_driver broadsheetfb_driver = {
|
|||
.name = "broadsheetfb",
|
||||
},
|
||||
};
|
||||
|
||||
static int __init broadsheetfb_init(void)
|
||||
{
|
||||
return platform_driver_register(&broadsheetfb_driver);
|
||||
}
|
||||
|
||||
static void __exit broadsheetfb_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&broadsheetfb_driver);
|
||||
}
|
||||
|
||||
module_init(broadsheetfb_init);
|
||||
module_exit(broadsheetfb_exit);
|
||||
module_platform_driver(broadsheetfb_driver);
|
||||
|
||||
MODULE_DESCRIPTION("fbdev driver for Broadsheet controller");
|
||||
MODULE_AUTHOR("Jaya Kumar");
|
||||
|
|
Загрузка…
Ссылка в новой задаче