misc: arm-charlcd: use module_platform_driver_probe()
This patch uses module_platform_driver_probe() macro which makes the code smaller and simpler. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
9f7345b7a7
commit
0c75948249
1 changed files with 1 additions and 12 deletions
|
@ -378,18 +378,7 @@ static struct platform_driver charlcd_driver = {
|
||||||
.remove = __exit_p(charlcd_remove),
|
.remove = __exit_p(charlcd_remove),
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init charlcd_init(void)
|
module_platform_driver_probe(charlcd_driver, charlcd_probe);
|
||||||
{
|
|
||||||
return platform_driver_probe(&charlcd_driver, charlcd_probe);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void __exit charlcd_exit(void)
|
|
||||||
{
|
|
||||||
platform_driver_unregister(&charlcd_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
module_init(charlcd_init);
|
|
||||||
module_exit(charlcd_exit);
|
|
||||||
|
|
||||||
MODULE_AUTHOR("Linus Walleij <triad@df.lth.se>");
|
MODULE_AUTHOR("Linus Walleij <triad@df.lth.se>");
|
||||||
MODULE_DESCRIPTION("ARM Character LCD Driver");
|
MODULE_DESCRIPTION("ARM Character LCD Driver");
|
||||||
|
|
Loading…
Add table
Reference in a new issue