* [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
* [PATCH 2/3] misc: atmel_pwm: use module_platform_driver_probe()
2013-03-05 2:02 [PATCH 1/3] misc: arm-charlcd: use module_platform_driver_probe() Jingoo Han
@ 2013-03-05 2:03 ` Jingoo Han
2013-03-05 2:04 ` [PATCH 3/3] misc: ep93xx_pwm: " Jingoo Han
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Jingoo Han @ 2013-03-05 2:03 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/atmel_pwm.c | 12 +-----------
1 files changed, 1 insertions(+), 11 deletions(-)
diff --git a/drivers/misc/atmel_pwm.c b/drivers/misc/atmel_pwm.c
index 28f5aaa..494d050 100644
--- a/drivers/misc/atmel_pwm.c
+++ b/drivers/misc/atmel_pwm.c
@@ -393,17 +393,7 @@ static struct platform_driver atmel_pwm_driver = {
*/
};
-static int __init pwm_init(void)
-{
- return platform_driver_probe(&atmel_pwm_driver, pwm_probe);
-}
-module_init(pwm_init);
-
-static void __exit pwm_exit(void)
-{
- platform_driver_unregister(&atmel_pwm_driver);
-}
-module_exit(pwm_exit);
+module_platform_driver_probe(atmel_pwm_driver, pwm_probe);
MODULE_DESCRIPTION("Driver for AT32/AT91 PWM module");
MODULE_LICENSE("GPL");
--
1.7.2.5
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 3/3] misc: ep93xx_pwm: use module_platform_driver_probe()
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 ` Jingoo Han
2013-03-05 4:04 ` [PATCH 1/3] misc: arm-charlcd: " Linus Walleij
2013-03-05 8:29 ` Arnd Bergmann
3 siblings, 0 replies; 5+ messages in thread
From: Jingoo Han @ 2013-03-05 2:04 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/ep93xx_pwm.c | 13 +------------
1 files changed, 1 insertions(+), 12 deletions(-)
diff --git a/drivers/misc/ep93xx_pwm.c b/drivers/misc/ep93xx_pwm.c
index 16d7179..96787ec 100644
--- a/drivers/misc/ep93xx_pwm.c
+++ b/drivers/misc/ep93xx_pwm.c
@@ -365,18 +365,7 @@ static struct platform_driver ep93xx_pwm_driver = {
.remove = __exit_p(ep93xx_pwm_remove),
};
-static int __init ep93xx_pwm_init(void)
-{
- return platform_driver_probe(&ep93xx_pwm_driver, ep93xx_pwm_probe);
-}
-
-static void __exit ep93xx_pwm_exit(void)
-{
- platform_driver_unregister(&ep93xx_pwm_driver);
-}
-
-module_init(ep93xx_pwm_init);
-module_exit(ep93xx_pwm_exit);
+module_platform_driver_probe(ep93xx_pwm_driver, ep93xx_pwm_probe);
MODULE_AUTHOR("Matthieu Crapet <mcrapet@gmail.com>, "
"H Hartley Sweeten <hsweeten@visionengravers.com>");
--
1.7.2.5
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/3] misc: arm-charlcd: use module_platform_driver_probe()
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 ` Linus Walleij
2013-03-05 8:29 ` Arnd Bergmann
3 siblings, 0 replies; 5+ messages in thread
From: Linus Walleij @ 2013-03-05 4:04 UTC (permalink / raw)
To: Jingoo Han; +Cc: Arnd Bergmann, Greg Kroah-Hartman, linux-kernel
On Tue, Mar 5, 2013 at 3:02 AM, Jingoo Han <jg1.han@samsung.com> wrote:
> 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>
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/3] misc: arm-charlcd: use module_platform_driver_probe()
2013-03-05 2:02 [PATCH 1/3] misc: arm-charlcd: use module_platform_driver_probe() Jingoo Han
` (2 preceding siblings ...)
2013-03-05 4:04 ` [PATCH 1/3] misc: arm-charlcd: " Linus Walleij
@ 2013-03-05 8:29 ` Arnd Bergmann
3 siblings, 0 replies; 5+ messages in thread
From: Arnd Bergmann @ 2013-03-05 8:29 UTC (permalink / raw)
To: Jingoo Han; +Cc: 'Greg Kroah-Hartman', linux-kernel
On Tuesday 05 March 2013, Jingoo Han wrote:
>
> 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: Arnd Bergmann <arnd@arndb.de>
(all three patches)
^ 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