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:
Hanjun Guo 2013-09-29 13:32:07 +08:00 коммит произвёл Tomi Valkeinen
Родитель be75b5b535
Коммит 46fc95030d
1 изменённых файлов: 1 добавлений и 13 удалений

Просмотреть файл

@ -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");