All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 01/24] rtc: rtc-ab3100: use module_platform_driver_probe()
@ 2013-03-04  7:57 Jingoo Han
  2013-03-04  7:57 ` [PATCH 02/24] rtc: rtc-at32ap700x: " Jingoo Han
                   ` (23 more replies)
  0 siblings, 24 replies; 30+ messages in thread
From: Jingoo Han @ 2013-03-04  7:57 UTC (permalink / raw)
  To: 'Andrew Morton'
  Cc: linux-kernel, 'Alessandro Zummo',
	rtc-linux, '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/rtc/rtc-ab3100.c |   14 +-------------
 1 files changed, 1 insertions(+), 13 deletions(-)

diff --git a/drivers/rtc/rtc-ab3100.c b/drivers/rtc/rtc-ab3100.c
index 261a07e..c2f12d3 100644
--- a/drivers/rtc/rtc-ab3100.c
+++ b/drivers/rtc/rtc-ab3100.c
@@ -257,19 +257,7 @@ static struct platform_driver ab3100_rtc_driver = {
 	.remove	 = __exit_p(ab3100_rtc_remove),
 };
 
-static int __init ab3100_rtc_init(void)
-{
-	return platform_driver_probe(&ab3100_rtc_driver,
-				     ab3100_rtc_probe);
-}
-
-static void __exit ab3100_rtc_exit(void)
-{
-	platform_driver_unregister(&ab3100_rtc_driver);
-}
-
-module_init(ab3100_rtc_init);
-module_exit(ab3100_rtc_exit);
+module_platform_driver_probe(ab3100_rtc_driver, ab3100_rtc_probe);
 
 MODULE_AUTHOR("Linus Walleij <linus.walleij@stericsson.com>");
 MODULE_DESCRIPTION("AB3100 RTC Driver");
-- 
1.7.2.5



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

* [PATCH 02/24] rtc: rtc-at32ap700x: use module_platform_driver_probe()
  2013-03-04  7:57 [PATCH 01/24] rtc: rtc-ab3100: use module_platform_driver_probe() Jingoo Han
@ 2013-03-04  7:57 ` Jingoo Han
  2013-03-04  7:58 ` [PATCH 03/24] rtc: rtc-at91rm9200: " Jingoo Han
                   ` (22 subsequent siblings)
  23 siblings, 0 replies; 30+ messages in thread
From: Jingoo Han @ 2013-03-04  7:57 UTC (permalink / raw)
  To: 'Andrew Morton'
  Cc: linux-kernel, 'Alessandro Zummo',
	rtc-linux, '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/rtc/rtc-at32ap700x.c |   12 +-----------
 1 files changed, 1 insertions(+), 11 deletions(-)

diff --git a/drivers/rtc/rtc-at32ap700x.c b/drivers/rtc/rtc-at32ap700x.c
index 8dd0830..619c887 100644
--- a/drivers/rtc/rtc-at32ap700x.c
+++ b/drivers/rtc/rtc-at32ap700x.c
@@ -302,17 +302,7 @@ static struct platform_driver at32_rtc_driver = {
 	},
 };
 
-static int __init at32_rtc_init(void)
-{
-	return platform_driver_probe(&at32_rtc_driver, at32_rtc_probe);
-}
-module_init(at32_rtc_init);
-
-static void __exit at32_rtc_exit(void)
-{
-	platform_driver_unregister(&at32_rtc_driver);
-}
-module_exit(at32_rtc_exit);
+module_platform_driver_probe(at32_rtc_driver, at32_rtc_probe);
 
 MODULE_AUTHOR("Hans-Christian Egtvedt <hcegtvedt@atmel.com>");
 MODULE_DESCRIPTION("Real time clock for AVR32 AT32AP700x");
-- 
1.7.2.5



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

* [PATCH 03/24] rtc: rtc-at91rm9200: use module_platform_driver_probe()
  2013-03-04  7:57 [PATCH 01/24] rtc: rtc-ab3100: use module_platform_driver_probe() Jingoo Han
  2013-03-04  7:57 ` [PATCH 02/24] rtc: rtc-at32ap700x: " Jingoo Han
@ 2013-03-04  7:58 ` Jingoo Han
  2013-03-04  7:59 ` [PATCH 04/24] rtc: rtc-au1xxx: " Jingoo Han
                   ` (21 subsequent siblings)
  23 siblings, 0 replies; 30+ messages in thread
From: Jingoo Han @ 2013-03-04  7:58 UTC (permalink / raw)
  To: 'Andrew Morton'
  Cc: linux-kernel, 'Alessandro Zummo',
	rtc-linux, '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/rtc/rtc-at91rm9200.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/drivers/rtc/rtc-at91rm9200.c b/drivers/rtc/rtc-at91rm9200.c
index 434ebc3..f63c8fe 100644
--- a/drivers/rtc/rtc-at91rm9200.c
+++ b/drivers/rtc/rtc-at91rm9200.c
@@ -390,18 +390,7 @@ static struct platform_driver at91_rtc_driver = {
 	},
 };
 
-static int __init at91_rtc_init(void)
-{
-	return platform_driver_probe(&at91_rtc_driver, at91_rtc_probe);
-}
-
-static void __exit at91_rtc_exit(void)
-{
-	platform_driver_unregister(&at91_rtc_driver);
-}
-
-module_init(at91_rtc_init);
-module_exit(at91_rtc_exit);
+module_platform_driver_probe(at91_rtc_driver, at91_rtc_probe);
 
 MODULE_AUTHOR("Rick Bronson");
 MODULE_DESCRIPTION("RTC driver for Atmel AT91RM9200");
-- 
1.7.2.5



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

* [PATCH 04/24] rtc: rtc-au1xxx: use module_platform_driver_probe()
  2013-03-04  7:57 [PATCH 01/24] rtc: rtc-ab3100: use module_platform_driver_probe() Jingoo Han
  2013-03-04  7:57 ` [PATCH 02/24] rtc: rtc-at32ap700x: " Jingoo Han
  2013-03-04  7:58 ` [PATCH 03/24] rtc: rtc-at91rm9200: " Jingoo Han
@ 2013-03-04  7:59 ` Jingoo Han
  2013-03-04  7:59 ` [PATCH 05/24] rtc: rtc-coh901331: " Jingoo Han
                   ` (20 subsequent siblings)
  23 siblings, 0 replies; 30+ messages in thread
From: Jingoo Han @ 2013-03-04  7:59 UTC (permalink / raw)
  To: 'Andrew Morton'
  Cc: linux-kernel, 'Alessandro Zummo',
	rtc-linux, '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/rtc/rtc-au1xxx.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/drivers/rtc/rtc-au1xxx.c b/drivers/rtc/rtc-au1xxx.c
index b309da4..dfd6d66 100644
--- a/drivers/rtc/rtc-au1xxx.c
+++ b/drivers/rtc/rtc-au1xxx.c
@@ -134,18 +134,7 @@ static struct platform_driver au1xrtc_driver = {
 	.remove		= au1xtoy_rtc_remove,
 };
 
-static int __init au1xtoy_rtc_init(void)
-{
-	return platform_driver_probe(&au1xrtc_driver, au1xtoy_rtc_probe);
-}
-
-static void __exit au1xtoy_rtc_exit(void)
-{
-	platform_driver_unregister(&au1xrtc_driver);
-}
-
-module_init(au1xtoy_rtc_init);
-module_exit(au1xtoy_rtc_exit);
+module_platform_driver_probe(au1xrtc_driver, au1xtoy_rtc_probe);
 
 MODULE_DESCRIPTION("Au1xxx TOY-counter-based RTC driver");
 MODULE_AUTHOR("Manuel Lauss <manuel.lauss@gmail.com>");
-- 
1.7.2.5



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

* [PATCH 05/24] rtc: rtc-coh901331: use module_platform_driver_probe()
  2013-03-04  7:57 [PATCH 01/24] rtc: rtc-ab3100: use module_platform_driver_probe() Jingoo Han
                   ` (2 preceding siblings ...)
  2013-03-04  7:59 ` [PATCH 04/24] rtc: rtc-au1xxx: " Jingoo Han
@ 2013-03-04  7:59 ` Jingoo Han
  2013-03-07  3:32   ` [rtc-linux] " Linus Walleij
  2013-03-04  7:59 ` [PATCH 06/24] rtc: rtc-davinci: " Jingoo Han
                   ` (19 subsequent siblings)
  23 siblings, 1 reply; 30+ messages in thread
From: Jingoo Han @ 2013-03-04  7:59 UTC (permalink / raw)
  To: 'Andrew Morton'
  Cc: linux-kernel, 'Alessandro Zummo',
	rtc-linux, '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/rtc/rtc-coh901331.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/drivers/rtc/rtc-coh901331.c b/drivers/rtc/rtc-coh901331.c
index 2d28ec1a..f53fcd6 100644
--- a/drivers/rtc/rtc-coh901331.c
+++ b/drivers/rtc/rtc-coh901331.c
@@ -287,18 +287,7 @@ static struct platform_driver coh901331_driver = {
 	.shutdown = coh901331_shutdown,
 };
 
-static int __init coh901331_init(void)
-{
-	return platform_driver_probe(&coh901331_driver, coh901331_probe);
-}
-
-static void __exit coh901331_exit(void)
-{
-	platform_driver_unregister(&coh901331_driver);
-}
-
-module_init(coh901331_init);
-module_exit(coh901331_exit);
+module_platform_driver_probe(coh901331_driver, coh901331_probe);
 
 MODULE_AUTHOR("Linus Walleij <linus.walleij@stericsson.com>");
 MODULE_DESCRIPTION("ST-Ericsson AB COH 901 331 RTC Driver");
-- 
1.7.2.5



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

* [PATCH 06/24] rtc: rtc-davinci: use module_platform_driver_probe()
  2013-03-04  7:57 [PATCH 01/24] rtc: rtc-ab3100: use module_platform_driver_probe() Jingoo Han
                   ` (3 preceding siblings ...)
  2013-03-04  7:59 ` [PATCH 05/24] rtc: rtc-coh901331: " Jingoo Han
@ 2013-03-04  7:59 ` Jingoo Han
  2013-03-04  8:00 ` [PATCH 07/24] rtc: rtc-ds1302: " Jingoo Han
                   ` (18 subsequent siblings)
  23 siblings, 0 replies; 30+ messages in thread
From: Jingoo Han @ 2013-03-04  7:59 UTC (permalink / raw)
  To: 'Andrew Morton'
  Cc: linux-kernel, 'Alessandro Zummo',
	rtc-linux, '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/rtc/rtc-davinci.c |   12 +-----------
 1 files changed, 1 insertions(+), 11 deletions(-)

diff --git a/drivers/rtc/rtc-davinci.c b/drivers/rtc/rtc-davinci.c
index db877e0..1b0f9322 100644
--- a/drivers/rtc/rtc-davinci.c
+++ b/drivers/rtc/rtc-davinci.c
@@ -588,17 +588,7 @@ static struct platform_driver davinci_rtc_driver = {
 	},
 };
 
-static int __init rtc_init(void)
-{
-	return platform_driver_probe(&davinci_rtc_driver, davinci_rtc_probe);
-}
-module_init(rtc_init);
-
-static void __exit rtc_exit(void)
-{
-	platform_driver_unregister(&davinci_rtc_driver);
-}
-module_exit(rtc_exit);
+module_platform_driver_probe(davinci_rtc_driver, davinci_rtc_probe);
 
 MODULE_AUTHOR("Miguel Aguilar <miguel.aguilar@ridgerun.com>");
 MODULE_DESCRIPTION("Texas Instruments DaVinci PRTC Driver");
-- 
1.7.2.5



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

* [PATCH 07/24] rtc: rtc-ds1302: use module_platform_driver_probe()
  2013-03-04  7:57 [PATCH 01/24] rtc: rtc-ab3100: use module_platform_driver_probe() Jingoo Han
                   ` (4 preceding siblings ...)
  2013-03-04  7:59 ` [PATCH 06/24] rtc: rtc-davinci: " Jingoo Han
@ 2013-03-04  8:00 ` Jingoo Han
  2013-03-04  8:00 ` [PATCH 08/24] rtc: rtc-efi: " Jingoo Han
                   ` (17 subsequent siblings)
  23 siblings, 0 replies; 30+ messages in thread
From: Jingoo Han @ 2013-03-04  8:00 UTC (permalink / raw)
  To: 'Andrew Morton'
  Cc: linux-kernel, 'Alessandro Zummo',
	rtc-linux, '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/rtc/rtc-ds1302.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/drivers/rtc/rtc-ds1302.c b/drivers/rtc/rtc-ds1302.c
index d20b5f1..7d4c2b4 100644
--- a/drivers/rtc/rtc-ds1302.c
+++ b/drivers/rtc/rtc-ds1302.c
@@ -252,18 +252,7 @@ static struct platform_driver ds1302_platform_driver = {
 	.remove		= __exit_p(ds1302_rtc_remove),
 };
 
-static int __init ds1302_rtc_init(void)
-{
-	return platform_driver_probe(&ds1302_platform_driver, ds1302_rtc_probe);
-}
-
-static void __exit ds1302_rtc_exit(void)
-{
-	platform_driver_unregister(&ds1302_platform_driver);
-}
-
-module_init(ds1302_rtc_init);
-module_exit(ds1302_rtc_exit);
+module_platform_driver_probe(ds1302_platform_driver, ds1302_rtc_probe);
 
 MODULE_DESCRIPTION("Dallas DS1302 RTC driver");
 MODULE_VERSION(DRV_VERSION);
-- 
1.7.2.5



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

* [PATCH 08/24] rtc: rtc-efi: use module_platform_driver_probe()
  2013-03-04  7:57 [PATCH 01/24] rtc: rtc-ab3100: use module_platform_driver_probe() Jingoo Han
                   ` (5 preceding siblings ...)
  2013-03-04  8:00 ` [PATCH 07/24] rtc: rtc-ds1302: " Jingoo Han
@ 2013-03-04  8:00 ` Jingoo Han
  2013-03-04  8:01 ` [PATCH 09/24] rtc: rtc-generic: " Jingoo Han
                   ` (16 subsequent siblings)
  23 siblings, 0 replies; 30+ messages in thread
From: Jingoo Han @ 2013-03-04  8:00 UTC (permalink / raw)
  To: 'Andrew Morton'
  Cc: linux-kernel, 'Alessandro Zummo',
	rtc-linux, '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/rtc/rtc-efi.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/drivers/rtc/rtc-efi.c b/drivers/rtc/rtc-efi.c
index 1a0c37c..e706662 100644
--- a/drivers/rtc/rtc-efi.c
+++ b/drivers/rtc/rtc-efi.c
@@ -218,18 +218,7 @@ static struct platform_driver efi_rtc_driver = {
 	.remove = __exit_p(efi_rtc_remove),
 };
 
-static int __init efi_rtc_init(void)
-{
-	return platform_driver_probe(&efi_rtc_driver, efi_rtc_probe);
-}
-
-static void __exit efi_rtc_exit(void)
-{
-	platform_driver_unregister(&efi_rtc_driver);
-}
-
-module_init(efi_rtc_init);
-module_exit(efi_rtc_exit);
+module_platform_driver_probe(efi_rtc_driver, efi_rtc_probe);
 
 MODULE_AUTHOR("dann frazier <dannf@hp.com>");
 MODULE_LICENSE("GPL");
-- 
1.7.2.5



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

* [PATCH 09/24] rtc: rtc-generic: use module_platform_driver_probe()
  2013-03-04  7:57 [PATCH 01/24] rtc: rtc-ab3100: use module_platform_driver_probe() Jingoo Han
                   ` (6 preceding siblings ...)
  2013-03-04  8:00 ` [PATCH 08/24] rtc: rtc-efi: " Jingoo Han
@ 2013-03-04  8:01 ` Jingoo Han
  2013-03-04  8:01 ` [PATCH 10/24] rtc: rtc-imxdi: " Jingoo Han
                   ` (15 subsequent siblings)
  23 siblings, 0 replies; 30+ messages in thread
From: Jingoo Han @ 2013-03-04  8:01 UTC (permalink / raw)
  To: 'Andrew Morton'
  Cc: linux-kernel, 'Alessandro Zummo',
	rtc-linux, '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/rtc/rtc-generic.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/drivers/rtc/rtc-generic.c b/drivers/rtc/rtc-generic.c
index 98322004..0bf4530 100644
--- a/drivers/rtc/rtc-generic.c
+++ b/drivers/rtc/rtc-generic.c
@@ -65,18 +65,7 @@ static struct platform_driver generic_rtc_driver = {
 	.remove = __exit_p(generic_rtc_remove),
 };
 
-static int __init generic_rtc_init(void)
-{
-	return platform_driver_probe(&generic_rtc_driver, generic_rtc_probe);
-}
-
-static void __exit generic_rtc_fini(void)
-{
-	platform_driver_unregister(&generic_rtc_driver);
-}
-
-module_init(generic_rtc_init);
-module_exit(generic_rtc_fini);
+module_platform_driver_probe(generic_rtc_driver, generic_rtc_probe);
 
 MODULE_AUTHOR("Kyle McMartin <kyle@mcmartin.ca>");
 MODULE_LICENSE("GPL");
-- 
1.7.2.5



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

* [PATCH 10/24] rtc: rtc-imxdi: use module_platform_driver_probe()
  2013-03-04  7:57 [PATCH 01/24] rtc: rtc-ab3100: use module_platform_driver_probe() Jingoo Han
                   ` (7 preceding siblings ...)
  2013-03-04  8:01 ` [PATCH 09/24] rtc: rtc-generic: " Jingoo Han
@ 2013-03-04  8:01 ` Jingoo Han
  2013-03-04  8:01 ` [PATCH 11/24] rtc: rtc-mc13xxx: " Jingoo Han
                   ` (14 subsequent siblings)
  23 siblings, 0 replies; 30+ messages in thread
From: Jingoo Han @ 2013-03-04  8:01 UTC (permalink / raw)
  To: 'Andrew Morton'
  Cc: linux-kernel, 'Alessandro Zummo',
	rtc-linux, '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/rtc/rtc-imxdi.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/drivers/rtc/rtc-imxdi.c b/drivers/rtc/rtc-imxdi.c
index 73cf81c..a5a143e 100644
--- a/drivers/rtc/rtc-imxdi.c
+++ b/drivers/rtc/rtc-imxdi.c
@@ -513,18 +513,7 @@ static struct platform_driver dryice_rtc_driver = {
 	.remove = __exit_p(dryice_rtc_remove),
 };
 
-static int __init dryice_rtc_init(void)
-{
-	return platform_driver_probe(&dryice_rtc_driver, dryice_rtc_probe);
-}
-
-static void __exit dryice_rtc_exit(void)
-{
-	platform_driver_unregister(&dryice_rtc_driver);
-}
-
-module_init(dryice_rtc_init);
-module_exit(dryice_rtc_exit);
+module_platform_driver_probe(dryice_rtc_driver, dryice_rtc_probe);
 
 MODULE_AUTHOR("Freescale Semiconductor, Inc.");
 MODULE_AUTHOR("Baruch Siach <baruch@tkos.co.il>");
-- 
1.7.2.5



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

* [PATCH 11/24] rtc: rtc-mc13xxx: use module_platform_driver_probe()
  2013-03-04  7:57 [PATCH 01/24] rtc: rtc-ab3100: use module_platform_driver_probe() Jingoo Han
                   ` (8 preceding siblings ...)
  2013-03-04  8:01 ` [PATCH 10/24] rtc: rtc-imxdi: " Jingoo Han
@ 2013-03-04  8:01 ` Jingoo Han
  2013-03-04  8:02 ` [PATCH 12/24] rtc: rtc-msm6242: " Jingoo Han
                   ` (13 subsequent siblings)
  23 siblings, 0 replies; 30+ messages in thread
From: Jingoo Han @ 2013-03-04  8:01 UTC (permalink / raw)
  To: 'Andrew Morton'
  Cc: linux-kernel, 'Alessandro Zummo',
	rtc-linux, '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/rtc/rtc-mc13xxx.c |   12 +-----------
 1 files changed, 1 insertions(+), 11 deletions(-)

diff --git a/drivers/rtc/rtc-mc13xxx.c b/drivers/rtc/rtc-mc13xxx.c
index 2643d88..5391b15 100644
--- a/drivers/rtc/rtc-mc13xxx.c
+++ b/drivers/rtc/rtc-mc13xxx.c
@@ -420,17 +420,7 @@ static struct platform_driver mc13xxx_rtc_driver = {
 	},
 };
 
-static int __init mc13xxx_rtc_init(void)
-{
-	return platform_driver_probe(&mc13xxx_rtc_driver, &mc13xxx_rtc_probe);
-}
-module_init(mc13xxx_rtc_init);
-
-static void __exit mc13xxx_rtc_exit(void)
-{
-	platform_driver_unregister(&mc13xxx_rtc_driver);
-}
-module_exit(mc13xxx_rtc_exit);
+module_platform_driver_probe(mc13xxx_rtc_driver, &mc13xxx_rtc_probe);
 
 MODULE_AUTHOR("Sascha Hauer <s.hauer@pengutronix.de>");
 MODULE_DESCRIPTION("RTC driver for Freescale MC13XXX PMIC");
-- 
1.7.2.5



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

* [PATCH 12/24] rtc: rtc-msm6242: use module_platform_driver_probe()
  2013-03-04  7:57 [PATCH 01/24] rtc: rtc-ab3100: use module_platform_driver_probe() Jingoo Han
                   ` (9 preceding siblings ...)
  2013-03-04  8:01 ` [PATCH 11/24] rtc: rtc-mc13xxx: " Jingoo Han
@ 2013-03-04  8:02 ` Jingoo Han
  2013-03-04 21:55   ` Geert Uytterhoeven
  2013-03-04  8:02 ` [PATCH 13/24] rtc: rtc-mv: " Jingoo Han
                   ` (12 subsequent siblings)
  23 siblings, 1 reply; 30+ messages in thread
From: Jingoo Han @ 2013-03-04  8:02 UTC (permalink / raw)
  To: 'Andrew Morton'
  Cc: linux-kernel, 'Alessandro Zummo',
	rtc-linux, '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/rtc/rtc-msm6242.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/drivers/rtc/rtc-msm6242.c b/drivers/rtc/rtc-msm6242.c
index fcb113c..3ac1e8e 100644
--- a/drivers/rtc/rtc-msm6242.c
+++ b/drivers/rtc/rtc-msm6242.c
@@ -252,18 +252,7 @@ static struct platform_driver msm6242_rtc_driver = {
 	.remove	= __exit_p(msm6242_rtc_remove),
 };
 
-static int __init msm6242_rtc_init(void)
-{
-	return platform_driver_probe(&msm6242_rtc_driver, msm6242_rtc_probe);
-}
-
-static void __exit msm6242_rtc_fini(void)
-{
-	platform_driver_unregister(&msm6242_rtc_driver);
-}
-
-module_init(msm6242_rtc_init);
-module_exit(msm6242_rtc_fini);
+module_platform_driver_probe(msm6242_rtc_driver, msm6242_rtc_probe);
 
 MODULE_AUTHOR("Geert Uytterhoeven <geert@linux-m68k.org>");
 MODULE_LICENSE("GPL");
-- 
1.7.2.5



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

* [PATCH 13/24] rtc: rtc-mv: use module_platform_driver_probe()
  2013-03-04  7:57 [PATCH 01/24] rtc: rtc-ab3100: use module_platform_driver_probe() Jingoo Han
                   ` (10 preceding siblings ...)
  2013-03-04  8:02 ` [PATCH 12/24] rtc: rtc-msm6242: " Jingoo Han
@ 2013-03-04  8:02 ` Jingoo Han
  2013-03-04  8:03 ` [PATCH 14/24] rtc: rtc-nuc900: " Jingoo Han
                   ` (11 subsequent siblings)
  23 siblings, 0 replies; 30+ messages in thread
From: Jingoo Han @ 2013-03-04  8:02 UTC (permalink / raw)
  To: 'Andrew Morton'
  Cc: linux-kernel, 'Alessandro Zummo',
	rtc-linux, '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/rtc/rtc-mv.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/drivers/rtc/rtc-mv.c b/drivers/rtc/rtc-mv.c
index 59d1671..1583d62 100644
--- a/drivers/rtc/rtc-mv.c
+++ b/drivers/rtc/rtc-mv.c
@@ -311,18 +311,7 @@ static struct platform_driver mv_rtc_driver = {
 	},
 };
 
-static __init int mv_init(void)
-{
-	return platform_driver_probe(&mv_rtc_driver, mv_rtc_probe);
-}
-
-static __exit void mv_exit(void)
-{
-	platform_driver_unregister(&mv_rtc_driver);
-}
-
-module_init(mv_init);
-module_exit(mv_exit);
+module_platform_driver_probe(mv_rtc_driver, mv_rtc_probe);
 
 MODULE_AUTHOR("Saeed Bishara <saeed@marvell.com>");
 MODULE_DESCRIPTION("Marvell RTC driver");
-- 
1.7.2.5



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

* [PATCH 14/24] rtc: rtc-nuc900: use module_platform_driver_probe()
  2013-03-04  7:57 [PATCH 01/24] rtc: rtc-ab3100: use module_platform_driver_probe() Jingoo Han
                   ` (11 preceding siblings ...)
  2013-03-04  8:02 ` [PATCH 13/24] rtc: rtc-mv: " Jingoo Han
@ 2013-03-04  8:03 ` Jingoo Han
  2013-03-04  8:03 ` [PATCH 15/24] rtc: rtc-omap: " Jingoo Han
                   ` (10 subsequent siblings)
  23 siblings, 0 replies; 30+ messages in thread
From: Jingoo Han @ 2013-03-04  8:03 UTC (permalink / raw)
  To: 'Andrew Morton'
  Cc: linux-kernel, 'Alessandro Zummo',
	rtc-linux, '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/rtc/rtc-nuc900.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/drivers/rtc/rtc-nuc900.c b/drivers/rtc/rtc-nuc900.c
index 06b98fb..4d9525c 100644
--- a/drivers/rtc/rtc-nuc900.c
+++ b/drivers/rtc/rtc-nuc900.c
@@ -311,18 +311,7 @@ static struct platform_driver nuc900_rtc_driver = {
 	},
 };
 
-static int __init nuc900_rtc_init(void)
-{
-	return platform_driver_probe(&nuc900_rtc_driver, nuc900_rtc_probe);
-}
-
-static void __exit nuc900_rtc_exit(void)
-{
-	platform_driver_unregister(&nuc900_rtc_driver);
-}
-
-module_init(nuc900_rtc_init);
-module_exit(nuc900_rtc_exit);
+module_platform_driver_probe(nuc900_rtc_driver, nuc900_rtc_probe);
 
 MODULE_AUTHOR("Wan ZongShun <mcuos.com@gmail.com>");
 MODULE_DESCRIPTION("nuc910/nuc920 RTC driver");
-- 
1.7.2.5



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

* [PATCH 15/24] rtc: rtc-omap: use module_platform_driver_probe()
  2013-03-04  7:57 [PATCH 01/24] rtc: rtc-ab3100: use module_platform_driver_probe() Jingoo Han
                   ` (12 preceding siblings ...)
  2013-03-04  8:03 ` [PATCH 14/24] rtc: rtc-nuc900: " Jingoo Han
@ 2013-03-04  8:03 ` Jingoo Han
  2013-03-04  8:04 ` [PATCH 16/24] rtc: rtc-pcap: " Jingoo Han
                   ` (9 subsequent siblings)
  23 siblings, 0 replies; 30+ messages in thread
From: Jingoo Han @ 2013-03-04  8:03 UTC (permalink / raw)
  To: 'Andrew Morton'
  Cc: linux-kernel, 'Alessandro Zummo',
	rtc-linux, '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/rtc/rtc-omap.c |   12 +-----------
 1 files changed, 1 insertions(+), 11 deletions(-)

diff --git a/drivers/rtc/rtc-omap.c b/drivers/rtc/rtc-omap.c
index 6009714..172cc5c 100644
--- a/drivers/rtc/rtc-omap.c
+++ b/drivers/rtc/rtc-omap.c
@@ -550,17 +550,7 @@ static struct platform_driver omap_rtc_driver = {
 	.id_table	= omap_rtc_devtype,
 };
 
-static int __init rtc_init(void)
-{
-	return platform_driver_probe(&omap_rtc_driver, omap_rtc_probe);
-}
-module_init(rtc_init);
-
-static void __exit rtc_exit(void)
-{
-	platform_driver_unregister(&omap_rtc_driver);
-}
-module_exit(rtc_exit);
+module_platform_driver_probe(omap_rtc_driver, omap_rtc_probe);
 
 MODULE_AUTHOR("George G. Davis (and others)");
 MODULE_LICENSE("GPL");
-- 
1.7.2.5



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

* [PATCH 16/24] rtc: rtc-pcap: use module_platform_driver_probe()
  2013-03-04  7:57 [PATCH 01/24] rtc: rtc-ab3100: use module_platform_driver_probe() Jingoo Han
                   ` (13 preceding siblings ...)
  2013-03-04  8:03 ` [PATCH 15/24] rtc: rtc-omap: " Jingoo Han
@ 2013-03-04  8:04 ` Jingoo Han
  2013-03-04  8:04 ` [PATCH 17/24] rtc: rtc-ps3: " Jingoo Han
                   ` (8 subsequent siblings)
  23 siblings, 0 replies; 30+ messages in thread
From: Jingoo Han @ 2013-03-04  8:04 UTC (permalink / raw)
  To: 'Andrew Morton'
  Cc: linux-kernel, 'Alessandro Zummo',
	rtc-linux, '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/rtc/rtc-pcap.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/drivers/rtc/rtc-pcap.c b/drivers/rtc/rtc-pcap.c
index 48db88a..ce09824 100644
--- a/drivers/rtc/rtc-pcap.c
+++ b/drivers/rtc/rtc-pcap.c
@@ -203,18 +203,7 @@ static struct platform_driver pcap_rtc_driver = {
 	},
 };
 
-static int __init rtc_pcap_init(void)
-{
-	return platform_driver_probe(&pcap_rtc_driver, pcap_rtc_probe);
-}
-
-static void __exit rtc_pcap_exit(void)
-{
-	platform_driver_unregister(&pcap_rtc_driver);
-}
-
-module_init(rtc_pcap_init);
-module_exit(rtc_pcap_exit);
+module_platform_driver_probe(pcap_rtc_driver, pcap_rtc_probe);
 
 MODULE_DESCRIPTION("Motorola pcap rtc driver");
 MODULE_AUTHOR("guiming zhuo <gmzhuo@gmail.com>");
-- 
1.7.2.5



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

* [PATCH 17/24] rtc: rtc-ps3: use module_platform_driver_probe()
  2013-03-04  7:57 [PATCH 01/24] rtc: rtc-ab3100: use module_platform_driver_probe() Jingoo Han
                   ` (14 preceding siblings ...)
  2013-03-04  8:04 ` [PATCH 16/24] rtc: rtc-pcap: " Jingoo Han
@ 2013-03-04  8:04 ` Jingoo Han
  2013-03-04 21:56   ` Geert Uytterhoeven
  2013-03-04  8:04 ` [PATCH 18/24] rtc: rtc-pxa: " Jingoo Han
                   ` (7 subsequent siblings)
  23 siblings, 1 reply; 30+ messages in thread
From: Jingoo Han @ 2013-03-04  8:04 UTC (permalink / raw)
  To: 'Andrew Morton'
  Cc: linux-kernel, 'Alessandro Zummo',
	rtc-linux, '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/rtc/rtc-ps3.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/drivers/rtc/rtc-ps3.c b/drivers/rtc/rtc-ps3.c
index 968133c..846722d 100644
--- a/drivers/rtc/rtc-ps3.c
+++ b/drivers/rtc/rtc-ps3.c
@@ -85,18 +85,7 @@ static struct platform_driver ps3_rtc_driver = {
 	.remove = __exit_p(ps3_rtc_remove),
 };
 
-static int __init ps3_rtc_init(void)
-{
-	return platform_driver_probe(&ps3_rtc_driver, ps3_rtc_probe);
-}
-
-static void __exit ps3_rtc_fini(void)
-{
-	platform_driver_unregister(&ps3_rtc_driver);
-}
-
-module_init(ps3_rtc_init);
-module_exit(ps3_rtc_fini);
+module_platform_driver_probe(ps3_rtc_driver, ps3_rtc_probe);
 
 MODULE_AUTHOR("Sony Corporation");
 MODULE_LICENSE("GPL");
-- 
1.7.2.5



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

* [PATCH 18/24] rtc: rtc-pxa: use module_platform_driver_probe()
  2013-03-04  7:57 [PATCH 01/24] rtc: rtc-ab3100: use module_platform_driver_probe() Jingoo Han
                   ` (15 preceding siblings ...)
  2013-03-04  8:04 ` [PATCH 17/24] rtc: rtc-ps3: " Jingoo Han
@ 2013-03-04  8:04 ` Jingoo Han
  2013-03-04  8:05 ` [PATCH 19/24] rtc: rtc-rp5c01: " Jingoo Han
                   ` (6 subsequent siblings)
  23 siblings, 0 replies; 30+ messages in thread
From: Jingoo Han @ 2013-03-04  8:04 UTC (permalink / raw)
  To: 'Andrew Morton'
  Cc: linux-kernel, 'Alessandro Zummo',
	rtc-linux, '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/rtc/rtc-pxa.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/drivers/rtc/rtc-pxa.c b/drivers/rtc/rtc-pxa.c
index b7e46297..72e13da 100644
--- a/drivers/rtc/rtc-pxa.c
+++ b/drivers/rtc/rtc-pxa.c
@@ -502,18 +502,7 @@ static struct platform_driver pxa_rtc_driver = {
 	},
 };
 
-static int __init pxa_rtc_init(void)
-{
-	return platform_driver_probe(&pxa_rtc_driver, pxa_rtc_probe);
-}
-
-static void __exit pxa_rtc_exit(void)
-{
-	platform_driver_unregister(&pxa_rtc_driver);
-}
-
-module_init(pxa_rtc_init);
-module_exit(pxa_rtc_exit);
+module_platform_driver_probe(pxa_rtc_driver, pxa_rtc_probe);
 
 MODULE_AUTHOR("Robert Jarzmik <robert.jarzmik@free.fr>");
 MODULE_DESCRIPTION("PXA27x/PXA3xx Realtime Clock Driver (RTC)");
-- 
1.7.2.5



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

* [PATCH 19/24] rtc: rtc-rp5c01: use module_platform_driver_probe()
  2013-03-04  7:57 [PATCH 01/24] rtc: rtc-ab3100: use module_platform_driver_probe() Jingoo Han
                   ` (16 preceding siblings ...)
  2013-03-04  8:04 ` [PATCH 18/24] rtc: rtc-pxa: " Jingoo Han
@ 2013-03-04  8:05 ` Jingoo Han
  2013-03-04 21:56   ` Geert Uytterhoeven
  2013-03-04  8:05 ` [PATCH 20/24] rtc: rtc-sh: " Jingoo Han
                   ` (5 subsequent siblings)
  23 siblings, 1 reply; 30+ messages in thread
From: Jingoo Han @ 2013-03-04  8:05 UTC (permalink / raw)
  To: 'Andrew Morton'
  Cc: linux-kernel, 'Alessandro Zummo',
	rtc-linux, '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/rtc/rtc-rp5c01.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/drivers/rtc/rtc-rp5c01.c b/drivers/rtc/rtc-rp5c01.c
index 359da6d..d25d2f6 100644
--- a/drivers/rtc/rtc-rp5c01.c
+++ b/drivers/rtc/rtc-rp5c01.c
@@ -294,18 +294,7 @@ static struct platform_driver rp5c01_rtc_driver = {
 	.remove	= __exit_p(rp5c01_rtc_remove),
 };
 
-static int __init rp5c01_rtc_init(void)
-{
-	return platform_driver_probe(&rp5c01_rtc_driver, rp5c01_rtc_probe);
-}
-
-static void __exit rp5c01_rtc_fini(void)
-{
-	platform_driver_unregister(&rp5c01_rtc_driver);
-}
-
-module_init(rp5c01_rtc_init);
-module_exit(rp5c01_rtc_fini);
+module_platform_driver_probe(rp5c01_rtc_driver, rp5c01_rtc_probe);
 
 MODULE_AUTHOR("Geert Uytterhoeven <geert@linux-m68k.org>");
 MODULE_LICENSE("GPL");
-- 
1.7.2.5



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

* [PATCH 20/24] rtc: rtc-sh: use module_platform_driver_probe()
  2013-03-04  7:57 [PATCH 01/24] rtc: rtc-ab3100: use module_platform_driver_probe() Jingoo Han
                   ` (17 preceding siblings ...)
  2013-03-04  8:05 ` [PATCH 19/24] rtc: rtc-rp5c01: " Jingoo Han
@ 2013-03-04  8:05 ` Jingoo Han
  2013-03-05  7:23   ` Paul Mundt
  2013-03-04  8:06 ` [PATCH 21/24] rtc: rtc-starfire: " Jingoo Han
                   ` (4 subsequent siblings)
  23 siblings, 1 reply; 30+ messages in thread
From: Jingoo Han @ 2013-03-04  8:05 UTC (permalink / raw)
  To: 'Andrew Morton'
  Cc: linux-kernel, 'Alessandro Zummo',
	rtc-linux, '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/rtc/rtc-sh.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/drivers/rtc/rtc-sh.c b/drivers/rtc/rtc-sh.c
index e55a763..5f47085 100644
--- a/drivers/rtc/rtc-sh.c
+++ b/drivers/rtc/rtc-sh.c
@@ -820,18 +820,7 @@ static struct platform_driver sh_rtc_platform_driver = {
 	.remove		= __exit_p(sh_rtc_remove),
 };
 
-static int __init sh_rtc_init(void)
-{
-	return platform_driver_probe(&sh_rtc_platform_driver, sh_rtc_probe);
-}
-
-static void __exit sh_rtc_exit(void)
-{
-	platform_driver_unregister(&sh_rtc_platform_driver);
-}
-
-module_init(sh_rtc_init);
-module_exit(sh_rtc_exit);
+module_platform_driver_probe(sh_rtc_platform_driver, sh_rtc_probe);
 
 MODULE_DESCRIPTION("SuperH on-chip RTC driver");
 MODULE_VERSION(DRV_VERSION);
-- 
1.7.2.5



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

* [PATCH 21/24] rtc: rtc-starfire: use module_platform_driver_probe()
  2013-03-04  7:57 [PATCH 01/24] rtc: rtc-ab3100: use module_platform_driver_probe() Jingoo Han
                   ` (18 preceding siblings ...)
  2013-03-04  8:05 ` [PATCH 20/24] rtc: rtc-sh: " Jingoo Han
@ 2013-03-04  8:06 ` Jingoo Han
  2013-03-04  8:06 ` [PATCH 22/24] rtc: rtc-sun4v: " Jingoo Han
                   ` (3 subsequent siblings)
  23 siblings, 0 replies; 30+ messages in thread
From: Jingoo Han @ 2013-03-04  8:06 UTC (permalink / raw)
  To: 'Andrew Morton'
  Cc: linux-kernel, 'Alessandro Zummo',
	rtc-linux, '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/rtc/rtc-starfire.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/drivers/rtc/rtc-starfire.c b/drivers/rtc/rtc-starfire.c
index 5be98bf..db7d076 100644
--- a/drivers/rtc/rtc-starfire.c
+++ b/drivers/rtc/rtc-starfire.c
@@ -66,15 +66,4 @@ static struct platform_driver starfire_rtc_driver = {
 	.remove		= __exit_p(starfire_rtc_remove),
 };
 
-static int __init starfire_rtc_init(void)
-{
-	return platform_driver_probe(&starfire_rtc_driver, starfire_rtc_probe);
-}
-
-static void __exit starfire_rtc_exit(void)
-{
-	platform_driver_unregister(&starfire_rtc_driver);
-}
-
-module_init(starfire_rtc_init);
-module_exit(starfire_rtc_exit);
+module_platform_driver_probe(starfire_rtc_driver, starfire_rtc_probe);
-- 
1.7.2.5



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

* [PATCH 22/24] rtc: rtc-sun4v: use module_platform_driver_probe()
  2013-03-04  7:57 [PATCH 01/24] rtc: rtc-ab3100: use module_platform_driver_probe() Jingoo Han
                   ` (19 preceding siblings ...)
  2013-03-04  8:06 ` [PATCH 21/24] rtc: rtc-starfire: " Jingoo Han
@ 2013-03-04  8:06 ` Jingoo Han
  2013-03-04  8:07 ` [PATCH 23/24] rtc: rtc-tegra: " Jingoo Han
                   ` (2 subsequent siblings)
  23 siblings, 0 replies; 30+ messages in thread
From: Jingoo Han @ 2013-03-04  8:06 UTC (permalink / raw)
  To: 'Andrew Morton'
  Cc: linux-kernel, 'Alessandro Zummo',
	rtc-linux, '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/rtc/rtc-sun4v.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/drivers/rtc/rtc-sun4v.c b/drivers/rtc/rtc-sun4v.c
index 59b5c2d..7c51c49 100644
--- a/drivers/rtc/rtc-sun4v.c
+++ b/drivers/rtc/rtc-sun4v.c
@@ -106,18 +106,7 @@ static struct platform_driver sun4v_rtc_driver = {
 	.remove		= __exit_p(sun4v_rtc_remove),
 };
 
-static int __init sun4v_rtc_init(void)
-{
-	return platform_driver_probe(&sun4v_rtc_driver, sun4v_rtc_probe);
-}
-
-static void __exit sun4v_rtc_exit(void)
-{
-	platform_driver_unregister(&sun4v_rtc_driver);
-}
-
-module_init(sun4v_rtc_init);
-module_exit(sun4v_rtc_exit);
+module_platform_driver_probe(sun4v_rtc_driver, sun4v_rtc_probe);
 
 MODULE_AUTHOR("David S. Miller <davem@davemloft.net>");
 MODULE_DESCRIPTION("SUN4V RTC driver");
-- 
1.7.2.5



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

* [PATCH 23/24] rtc: rtc-tegra: use module_platform_driver_probe()
  2013-03-04  7:57 [PATCH 01/24] rtc: rtc-ab3100: use module_platform_driver_probe() Jingoo Han
                   ` (20 preceding siblings ...)
  2013-03-04  8:06 ` [PATCH 22/24] rtc: rtc-sun4v: " Jingoo Han
@ 2013-03-04  8:07 ` Jingoo Han
  2013-03-04  8:07 ` [PATCH 24/24] rtc: rtc-tx4939: " Jingoo Han
  2013-03-07  3:31 ` [rtc-linux] [PATCH 01/24] rtc: rtc-ab3100: " Linus Walleij
  23 siblings, 0 replies; 30+ messages in thread
From: Jingoo Han @ 2013-03-04  8:07 UTC (permalink / raw)
  To: 'Andrew Morton'
  Cc: linux-kernel, 'Alessandro Zummo',
	rtc-linux, '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/rtc/rtc-tegra.c |   12 +-----------
 1 files changed, 1 insertions(+), 11 deletions(-)

diff --git a/drivers/rtc/rtc-tegra.c b/drivers/rtc/rtc-tegra.c
index 0020bab..9447d65 100644
--- a/drivers/rtc/rtc-tegra.c
+++ b/drivers/rtc/rtc-tegra.c
@@ -452,17 +452,7 @@ static struct platform_driver tegra_rtc_driver = {
 #endif
 };
 
-static int __init tegra_rtc_init(void)
-{
-	return platform_driver_probe(&tegra_rtc_driver, tegra_rtc_probe);
-}
-module_init(tegra_rtc_init);
-
-static void __exit tegra_rtc_exit(void)
-{
-	platform_driver_unregister(&tegra_rtc_driver);
-}
-module_exit(tegra_rtc_exit);
+module_platform_driver_probe(tegra_rtc_driver, tegra_rtc_probe);
 
 MODULE_AUTHOR("Jon Mayo <jmayo@nvidia.com>");
 MODULE_DESCRIPTION("driver for Tegra internal RTC");
-- 
1.7.2.5



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

* [PATCH 24/24] rtc: rtc-tx4939: use module_platform_driver_probe()
  2013-03-04  7:57 [PATCH 01/24] rtc: rtc-ab3100: use module_platform_driver_probe() Jingoo Han
                   ` (21 preceding siblings ...)
  2013-03-04  8:07 ` [PATCH 23/24] rtc: rtc-tegra: " Jingoo Han
@ 2013-03-04  8:07 ` Jingoo Han
  2013-03-07  3:31 ` [rtc-linux] [PATCH 01/24] rtc: rtc-ab3100: " Linus Walleij
  23 siblings, 0 replies; 30+ messages in thread
From: Jingoo Han @ 2013-03-04  8:07 UTC (permalink / raw)
  To: 'Andrew Morton'
  Cc: linux-kernel, 'Alessandro Zummo',
	rtc-linux, '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/rtc/rtc-tx4939.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/drivers/rtc/rtc-tx4939.c b/drivers/rtc/rtc-tx4939.c
index a12bfac..4f2c082 100644
--- a/drivers/rtc/rtc-tx4939.c
+++ b/drivers/rtc/rtc-tx4939.c
@@ -299,18 +299,7 @@ static struct platform_driver tx4939_rtc_driver = {
 	},
 };
 
-static int __init tx4939rtc_init(void)
-{
-	return platform_driver_probe(&tx4939_rtc_driver, tx4939_rtc_probe);
-}
-
-static void __exit tx4939rtc_exit(void)
-{
-	platform_driver_unregister(&tx4939_rtc_driver);
-}
-
-module_init(tx4939rtc_init);
-module_exit(tx4939rtc_exit);
+module_platform_driver_probe(tx4939_rtc_driver, tx4939_rtc_probe);
 
 MODULE_AUTHOR("Atsushi Nemoto <anemo@mba.ocn.ne.jp>");
 MODULE_DESCRIPTION("TX4939 internal RTC driver");
-- 
1.7.2.5



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

* Re: [PATCH 12/24] rtc: rtc-msm6242: use module_platform_driver_probe()
  2013-03-04  8:02 ` [PATCH 12/24] rtc: rtc-msm6242: " Jingoo Han
@ 2013-03-04 21:55   ` Geert Uytterhoeven
  0 siblings, 0 replies; 30+ messages in thread
From: Geert Uytterhoeven @ 2013-03-04 21:55 UTC (permalink / raw)
  To: Jingoo Han; +Cc: Andrew Morton, linux-kernel, Alessandro Zummo, rtc-linux

On Mon, Mar 4, 2013 at 9: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: Geert Uytterhoeven <geert@linux-m68k.org>

> ---
>  drivers/rtc/rtc-msm6242.c |   13 +------------
>  1 files changed, 1 insertions(+), 12 deletions(-)
>
> diff --git a/drivers/rtc/rtc-msm6242.c b/drivers/rtc/rtc-msm6242.c
> index fcb113c..3ac1e8e 100644
> --- a/drivers/rtc/rtc-msm6242.c
> +++ b/drivers/rtc/rtc-msm6242.c
> @@ -252,18 +252,7 @@ static struct platform_driver msm6242_rtc_driver = {
>         .remove = __exit_p(msm6242_rtc_remove),
>  };
>
> -static int __init msm6242_rtc_init(void)
> -{
> -       return platform_driver_probe(&msm6242_rtc_driver, msm6242_rtc_probe);
> -}
> -
> -static void __exit msm6242_rtc_fini(void)
> -{
> -       platform_driver_unregister(&msm6242_rtc_driver);
> -}
> -
> -module_init(msm6242_rtc_init);
> -module_exit(msm6242_rtc_fini);
> +module_platform_driver_probe(msm6242_rtc_driver, msm6242_rtc_probe);
>
>  MODULE_AUTHOR("Geert Uytterhoeven <geert@linux-m68k.org>");
>  MODULE_LICENSE("GPL");

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

* Re: [PATCH 17/24] rtc: rtc-ps3: use module_platform_driver_probe()
  2013-03-04  8:04 ` [PATCH 17/24] rtc: rtc-ps3: " Jingoo Han
@ 2013-03-04 21:56   ` Geert Uytterhoeven
  0 siblings, 0 replies; 30+ messages in thread
From: Geert Uytterhoeven @ 2013-03-04 21:56 UTC (permalink / raw)
  To: Jingoo Han; +Cc: Andrew Morton, linux-kernel, Alessandro Zummo, rtc-linux

On Mon, Mar 4, 2013 at 9:04 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: Geert Uytterhoeven <geert@linux-m68k.org>

> ---
>  drivers/rtc/rtc-ps3.c |   13 +------------
>  1 files changed, 1 insertions(+), 12 deletions(-)
>
> diff --git a/drivers/rtc/rtc-ps3.c b/drivers/rtc/rtc-ps3.c
> index 968133c..846722d 100644
> --- a/drivers/rtc/rtc-ps3.c
> +++ b/drivers/rtc/rtc-ps3.c
> @@ -85,18 +85,7 @@ static struct platform_driver ps3_rtc_driver = {
>         .remove = __exit_p(ps3_rtc_remove),
>  };
>
> -static int __init ps3_rtc_init(void)
> -{
> -       return platform_driver_probe(&ps3_rtc_driver, ps3_rtc_probe);
> -}
> -
> -static void __exit ps3_rtc_fini(void)
> -{
> -       platform_driver_unregister(&ps3_rtc_driver);
> -}
> -
> -module_init(ps3_rtc_init);
> -module_exit(ps3_rtc_fini);
> +module_platform_driver_probe(ps3_rtc_driver, ps3_rtc_probe);
>
>  MODULE_AUTHOR("Sony Corporation");
>  MODULE_LICENSE("GPL");

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

* Re: [PATCH 19/24] rtc: rtc-rp5c01: use module_platform_driver_probe()
  2013-03-04  8:05 ` [PATCH 19/24] rtc: rtc-rp5c01: " Jingoo Han
@ 2013-03-04 21:56   ` Geert Uytterhoeven
  0 siblings, 0 replies; 30+ messages in thread
From: Geert Uytterhoeven @ 2013-03-04 21:56 UTC (permalink / raw)
  To: Jingoo Han; +Cc: Andrew Morton, linux-kernel, Alessandro Zummo, rtc-linux

On Mon, Mar 4, 2013 at 9:05 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: Geert Uytterhoeven <geert@linux-m68k.org>

> ---
>  drivers/rtc/rtc-rp5c01.c |   13 +------------
>  1 files changed, 1 insertions(+), 12 deletions(-)
>
> diff --git a/drivers/rtc/rtc-rp5c01.c b/drivers/rtc/rtc-rp5c01.c
> index 359da6d..d25d2f6 100644
> --- a/drivers/rtc/rtc-rp5c01.c
> +++ b/drivers/rtc/rtc-rp5c01.c
> @@ -294,18 +294,7 @@ static struct platform_driver rp5c01_rtc_driver = {
>         .remove = __exit_p(rp5c01_rtc_remove),
>  };
>
> -static int __init rp5c01_rtc_init(void)
> -{
> -       return platform_driver_probe(&rp5c01_rtc_driver, rp5c01_rtc_probe);
> -}
> -
> -static void __exit rp5c01_rtc_fini(void)
> -{
> -       platform_driver_unregister(&rp5c01_rtc_driver);
> -}
> -
> -module_init(rp5c01_rtc_init);
> -module_exit(rp5c01_rtc_fini);
> +module_platform_driver_probe(rp5c01_rtc_driver, rp5c01_rtc_probe);
>
>  MODULE_AUTHOR("Geert Uytterhoeven <geert@linux-m68k.org>");
>  MODULE_LICENSE("GPL");

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

* Re: [PATCH 20/24] rtc: rtc-sh: use module_platform_driver_probe()
  2013-03-04  8:05 ` [PATCH 20/24] rtc: rtc-sh: " Jingoo Han
@ 2013-03-05  7:23   ` Paul Mundt
  0 siblings, 0 replies; 30+ messages in thread
From: Paul Mundt @ 2013-03-05  7:23 UTC (permalink / raw)
  To: Jingoo Han
  Cc: 'Andrew Morton', linux-kernel, 'Alessandro Zummo',
	rtc-linux

On Mon, Mar 04, 2013 at 05:05:34PM +0900, 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>

Not sure I see the point, but:

Acked-by: Paul Mundt <lethal@linux-sh.org>

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

* Re: [rtc-linux] [PATCH 01/24] rtc: rtc-ab3100: use module_platform_driver_probe()
  2013-03-04  7:57 [PATCH 01/24] rtc: rtc-ab3100: use module_platform_driver_probe() Jingoo Han
                   ` (22 preceding siblings ...)
  2013-03-04  8:07 ` [PATCH 24/24] rtc: rtc-tx4939: " Jingoo Han
@ 2013-03-07  3:31 ` Linus Walleij
  23 siblings, 0 replies; 30+ messages in thread
From: Linus Walleij @ 2013-03-07  3:31 UTC (permalink / raw)
  To: rtc-linux; +Cc: Andrew Morton, linux-kernel, Alessandro Zummo, Jingoo Han

On Mon, Mar 4, 2013 at 8:57 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] 30+ messages in thread

* Re: [rtc-linux] [PATCH 05/24] rtc: rtc-coh901331: use module_platform_driver_probe()
  2013-03-04  7:59 ` [PATCH 05/24] rtc: rtc-coh901331: " Jingoo Han
@ 2013-03-07  3:32   ` Linus Walleij
  0 siblings, 0 replies; 30+ messages in thread
From: Linus Walleij @ 2013-03-07  3:32 UTC (permalink / raw)
  To: rtc-linux; +Cc: Andrew Morton, linux-kernel, Alessandro Zummo, Jingoo Han

On Mon, Mar 4, 2013 at 8:59 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] 30+ messages in thread

end of thread, other threads:[~2013-03-07  3:32 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-04  7:57 [PATCH 01/24] rtc: rtc-ab3100: use module_platform_driver_probe() Jingoo Han
2013-03-04  7:57 ` [PATCH 02/24] rtc: rtc-at32ap700x: " Jingoo Han
2013-03-04  7:58 ` [PATCH 03/24] rtc: rtc-at91rm9200: " Jingoo Han
2013-03-04  7:59 ` [PATCH 04/24] rtc: rtc-au1xxx: " Jingoo Han
2013-03-04  7:59 ` [PATCH 05/24] rtc: rtc-coh901331: " Jingoo Han
2013-03-07  3:32   ` [rtc-linux] " Linus Walleij
2013-03-04  7:59 ` [PATCH 06/24] rtc: rtc-davinci: " Jingoo Han
2013-03-04  8:00 ` [PATCH 07/24] rtc: rtc-ds1302: " Jingoo Han
2013-03-04  8:00 ` [PATCH 08/24] rtc: rtc-efi: " Jingoo Han
2013-03-04  8:01 ` [PATCH 09/24] rtc: rtc-generic: " Jingoo Han
2013-03-04  8:01 ` [PATCH 10/24] rtc: rtc-imxdi: " Jingoo Han
2013-03-04  8:01 ` [PATCH 11/24] rtc: rtc-mc13xxx: " Jingoo Han
2013-03-04  8:02 ` [PATCH 12/24] rtc: rtc-msm6242: " Jingoo Han
2013-03-04 21:55   ` Geert Uytterhoeven
2013-03-04  8:02 ` [PATCH 13/24] rtc: rtc-mv: " Jingoo Han
2013-03-04  8:03 ` [PATCH 14/24] rtc: rtc-nuc900: " Jingoo Han
2013-03-04  8:03 ` [PATCH 15/24] rtc: rtc-omap: " Jingoo Han
2013-03-04  8:04 ` [PATCH 16/24] rtc: rtc-pcap: " Jingoo Han
2013-03-04  8:04 ` [PATCH 17/24] rtc: rtc-ps3: " Jingoo Han
2013-03-04 21:56   ` Geert Uytterhoeven
2013-03-04  8:04 ` [PATCH 18/24] rtc: rtc-pxa: " Jingoo Han
2013-03-04  8:05 ` [PATCH 19/24] rtc: rtc-rp5c01: " Jingoo Han
2013-03-04 21:56   ` Geert Uytterhoeven
2013-03-04  8:05 ` [PATCH 20/24] rtc: rtc-sh: " Jingoo Han
2013-03-05  7:23   ` Paul Mundt
2013-03-04  8:06 ` [PATCH 21/24] rtc: rtc-starfire: " Jingoo Han
2013-03-04  8:06 ` [PATCH 22/24] rtc: rtc-sun4v: " Jingoo Han
2013-03-04  8:07 ` [PATCH 23/24] rtc: rtc-tegra: " Jingoo Han
2013-03-04  8:07 ` [PATCH 24/24] rtc: rtc-tx4939: " Jingoo Han
2013-03-07  3:31 ` [rtc-linux] [PATCH 01/24] rtc: rtc-ab3100: " Linus Walleij

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.