mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/3] misc: arm-charlcd: use module_platform_driver_probe()
@ 2013-03-05  2:02 Jingoo Han
  2013-03-05  2:03 ` [PATCH 2/3] misc: atmel_pwm: " Jingoo Han
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Jingoo Han @ 2013-03-05  2:02 UTC (permalink / raw)
  To: 'Arnd Bergmann', 'Greg Kroah-Hartman'
  Cc: linux-kernel, 'Jingoo Han'

This patch uses module_platform_driver_probe() macro which makes
the code smaller and simpler.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/misc/arm-charlcd.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/drivers/misc/arm-charlcd.c b/drivers/misc/arm-charlcd.c
index fe8616a..48651ef 100644
--- a/drivers/misc/arm-charlcd.c
+++ b/drivers/misc/arm-charlcd.c
@@ -378,18 +378,7 @@ static struct platform_driver charlcd_driver = {
 	.remove = __exit_p(charlcd_remove),
 };
 
-static int __init charlcd_init(void)
-{
-	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_platform_driver_probe(charlcd_driver, charlcd_probe);
 
 MODULE_AUTHOR("Linus Walleij <triad@df.lth.se>");
 MODULE_DESCRIPTION("ARM Character LCD Driver");
-- 
1.7.2.5



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-03-05  8:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-05  2:02 [PATCH 1/3] misc: arm-charlcd: use module_platform_driver_probe() Jingoo Han
2013-03-05  2:03 ` [PATCH 2/3] misc: atmel_pwm: " Jingoo Han
2013-03-05  2:04 ` [PATCH 3/3] misc: ep93xx_pwm: " Jingoo Han
2013-03-05  4:04 ` [PATCH 1/3] misc: arm-charlcd: " Linus Walleij
2013-03-05  8:29 ` Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome