aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/arm-charlcd.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-03-04 21:02:21 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-03-15 14:10:49 -0400
commit0c75948249a05ebfa3214aaf5b8247ec919c30ac (patch)
tree54aeaa2dc3b2fa28e30cf276f8daff581c517987 /drivers/misc/arm-charlcd.c
parent9f7345b7a7cbf4c78a8161cba21de1772d5ad56e (diff)
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>
Diffstat (limited to 'drivers/misc/arm-charlcd.c')
-rw-r--r--drivers/misc/arm-charlcd.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/misc/arm-charlcd.c b/drivers/misc/arm-charlcd.c
index fe8616a8d287..48651ef0028c 100644
--- a/drivers/misc/arm-charlcd.c
+++ b/drivers/misc/arm-charlcd.c
@@ -378,18 +378,7 @@ static struct platform_driver charlcd_driver = {
378 .remove = __exit_p(charlcd_remove), 378 .remove = __exit_p(charlcd_remove),
379}; 379};
380 380
381static int __init charlcd_init(void) 381module_platform_driver_probe(charlcd_driver, charlcd_probe);
382{
383 return platform_driver_probe(&charlcd_driver, charlcd_probe);
384}
385
386static void __exit charlcd_exit(void)
387{
388 platform_driver_unregister(&charlcd_driver);
389}
390
391module_init(charlcd_init);
392module_exit(charlcd_exit);
393 382
394MODULE_AUTHOR("Linus Walleij <triad@df.lth.se>"); 383MODULE_AUTHOR("Linus Walleij <triad@df.lth.se>");
395MODULE_DESCRIPTION("ARM Character LCD Driver"); 384MODULE_DESCRIPTION("ARM Character LCD Driver");