All of lore.kernel.org
 help / color / mirror / Atom feed
* [RTF] [PATCH 00/26] gpio: use platform based module init
@ 2014-09-09 10:29 kamlakant.patel
  2014-09-09 10:29 ` [RTF] [PATCH 01/26] gpio: em: " kamlakant.patel
                   ` (26 more replies)
  0 siblings, 27 replies; 29+ messages in thread
From: kamlakant.patel @ 2014-09-09 10:29 UTC (permalink / raw)
  To: Linus Walleij, Alexandre Courbot; +Cc: Kamlakant Patel, linux-gpio

From: Kamlakant Patel <kamlakant.patel@linaro.org>

This patch removes *_initcall based driver initialization
and adds regular module_platform_driver to instantiate
GPIO drivers which makes the code smaller and simpler.

NOTE: This patch needs to be tested on different platforms.

Kamlakant Patel (26):
  gpio: em: use platform based module init
  gpio: ep93xx: use platform based module init
  gpio: iop: use platform based module init
  gpio: msm-v1: use platform based module init
  gpio: mxc: use platform based module init
  gpio: mxs: use platform based module init
  gpio: palmas: use platform based module init
  gpio: SPEAr: use platform based module init
  gpio: stmpe: use platform based module init
  gpio: tc3589x: use platform based module init
  gpio: tps6586x: use platform based module init
  gpio: tps65910: use platform based module init
  gpio: use platform based module init
  gpio: twl4030: use platform based module init
  gpio: wm831x: use platform based module init
  gpio: wm8350: use platform based module init
  gpio: wm8994: use platform based module init
  gpio: zynq: use platform based module init
  gpio: da9055: use platform based module init
  gpio: lynxpoint: use platform based module init
  gpio: lantiq: use platform based module init
  gpio: msic: use platform based module init
  gpio: rc5t583: use platform based module init
  gpio: xway: use platform based module init
  gpio: tz1090-pdc: use platform based module init
  gpio: tz1090: use platform based module init

 drivers/gpio/gpio-da9055.c      | 13 +------------
 drivers/gpio/gpio-em.c          | 13 +------------
 drivers/gpio/gpio-ep93xx.c      |  7 +------
 drivers/gpio/gpio-iop.c         |  7 +------
 drivers/gpio/gpio-lynxpoint.c   | 14 +-------------
 drivers/gpio/gpio-mm-lantiq.c   |  8 +-------
 drivers/gpio/gpio-msic.c        |  8 +-------
 drivers/gpio/gpio-msm-v1.c      |  6 +-----
 drivers/gpio/gpio-mxc.c         |  7 +------
 drivers/gpio/gpio-mxs.c         |  6 +-----
 drivers/gpio/gpio-palmas.c      | 13 +------------
 drivers/gpio/gpio-rc5t583.c     | 13 +------------
 drivers/gpio/gpio-spear-spics.c |  7 +------
 drivers/gpio/gpio-stmpe.c       | 13 +------------
 drivers/gpio/gpio-stp-xway.c    |  8 +-------
 drivers/gpio/gpio-tc3589x.c     | 13 +------------
 drivers/gpio/gpio-tps6586x.c    | 13 +------------
 drivers/gpio/gpio-tps65910.c    | 13 +------------
 drivers/gpio/gpio-tps65912.c    | 13 +------------
 drivers/gpio/gpio-twl4030.c     | 13 +------------
 drivers/gpio/gpio-tz1090-pdc.c  |  7 +------
 drivers/gpio/gpio-tz1090.c      |  7 +------
 drivers/gpio/gpio-wm831x.c      | 13 +------------
 drivers/gpio/gpio-wm8350.c      | 13 +------------
 drivers/gpio/gpio-wm8994.c      | 13 +------------
 drivers/gpio/gpio-zynq.c        | 12 +-----------
 26 files changed, 26 insertions(+), 247 deletions(-)

-- 
1.9.1


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

* [RTF] [PATCH 01/26] gpio: em: use platform based module init
  2014-09-09 10:29 [RTF] [PATCH 00/26] gpio: use platform based module init kamlakant.patel
@ 2014-09-09 10:29 ` kamlakant.patel
  2014-09-09 10:29 ` [RTF] [PATCH 02/26] gpio: ep93xx: " kamlakant.patel
                   ` (25 subsequent siblings)
  26 siblings, 0 replies; 29+ messages in thread
From: kamlakant.patel @ 2014-09-09 10:29 UTC (permalink / raw)
  To: Linus Walleij, Alexandre Courbot; +Cc: Kamlakant Patel, linux-gpio

From: Kamlakant Patel <kamlakant.patel@linaro.org>

Convert *_initcall based probing of GPIO drivers to regular
module_init based probe.

Signed-off-by: Kamlakant Patel <kamlakant.patel@linaro.org>
---
 drivers/gpio/gpio-em.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/drivers/gpio/gpio-em.c b/drivers/gpio/gpio-em.c
index fe49ec3..c8df9b4 100644
--- a/drivers/gpio/gpio-em.c
+++ b/drivers/gpio/gpio-em.c
@@ -431,18 +431,7 @@ static struct platform_driver em_gio_device_driver = {
 		.owner		= THIS_MODULE,
 	}
 };
-
-static int __init em_gio_init(void)
-{
-	return platform_driver_register(&em_gio_device_driver);
-}
-postcore_initcall(em_gio_init);
-
-static void __exit em_gio_exit(void)
-{
-	platform_driver_unregister(&em_gio_device_driver);
-}
-module_exit(em_gio_exit);
+module_platform_driver(em_gio_device_driver);
 
 MODULE_AUTHOR("Magnus Damm");
 MODULE_DESCRIPTION("Renesas Emma Mobile GIO Driver");
-- 
1.9.1


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

* [RTF] [PATCH 02/26] gpio: ep93xx: use platform based module init
  2014-09-09 10:29 [RTF] [PATCH 00/26] gpio: use platform based module init kamlakant.patel
  2014-09-09 10:29 ` [RTF] [PATCH 01/26] gpio: em: " kamlakant.patel
@ 2014-09-09 10:29 ` kamlakant.patel
  2014-09-09 10:29 ` [RTF] [PATCH 03/26] gpio: iop: " kamlakant.patel
                   ` (24 subsequent siblings)
  26 siblings, 0 replies; 29+ messages in thread
From: kamlakant.patel @ 2014-09-09 10:29 UTC (permalink / raw)
  To: Linus Walleij, Alexandre Courbot; +Cc: Kamlakant Patel, linux-gpio

From: Kamlakant Patel <kamlakant.patel@linaro.org>

Convert *_initcall based probing of GPIO drivers to regular
module_init based probe.

Signed-off-by: Kamlakant Patel <kamlakant.patel@linaro.org>
---
 drivers/gpio/gpio-ep93xx.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/drivers/gpio/gpio-ep93xx.c b/drivers/gpio/gpio-ep93xx.c
index dcc2bb4..f7ae051 100644
--- a/drivers/gpio/gpio-ep93xx.c
+++ b/drivers/gpio/gpio-ep93xx.c
@@ -378,12 +378,7 @@ static struct platform_driver ep93xx_gpio_driver = {
 	},
 	.probe		= ep93xx_gpio_probe,
 };
-
-static int __init ep93xx_gpio_init(void)
-{
-	return platform_driver_register(&ep93xx_gpio_driver);
-}
-postcore_initcall(ep93xx_gpio_init);
+module_platform_driver(ep93xx_gpio_driver);
 
 MODULE_AUTHOR("Ryan Mallon <ryan@bluewatersys.com> "
 		"H Hartley Sweeten <hsweeten@visionengravers.com>");
-- 
1.9.1


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

* [RTF] [PATCH 03/26] gpio: iop: use platform based module init
  2014-09-09 10:29 [RTF] [PATCH 00/26] gpio: use platform based module init kamlakant.patel
  2014-09-09 10:29 ` [RTF] [PATCH 01/26] gpio: em: " kamlakant.patel
  2014-09-09 10:29 ` [RTF] [PATCH 02/26] gpio: ep93xx: " kamlakant.patel
@ 2014-09-09 10:29 ` kamlakant.patel
  2014-09-09 10:29 ` [RTF] [PATCH 04/26] gpio: msm-v1: " kamlakant.patel
                   ` (23 subsequent siblings)
  26 siblings, 0 replies; 29+ messages in thread
From: kamlakant.patel @ 2014-09-09 10:29 UTC (permalink / raw)
  To: Linus Walleij, Alexandre Courbot; +Cc: Kamlakant Patel, linux-gpio

From: Kamlakant Patel <kamlakant.patel@linaro.org>

Convert *_initcall based probing of GPIO drivers to regular
module_init based probe.

Signed-off-by: Kamlakant Patel <kamlakant.patel@linaro.org>
---
 drivers/gpio/gpio-iop.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/drivers/gpio/gpio-iop.c b/drivers/gpio/gpio-iop.c
index 0a5e9d3..d646421 100644
--- a/drivers/gpio/gpio-iop.c
+++ b/drivers/gpio/gpio-iop.c
@@ -124,9 +124,4 @@ static struct platform_driver iop3xx_gpio_driver = {
 	},
 	.probe = iop3xx_gpio_probe,
 };
-
-static int __init iop3xx_gpio_init(void)
-{
-	return platform_driver_register(&iop3xx_gpio_driver);
-}
-arch_initcall(iop3xx_gpio_init);
+module_platform_driver(iop3xx_gpio_driver);
-- 
1.9.1


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

* [RTF] [PATCH 04/26] gpio: msm-v1: use platform based module init
  2014-09-09 10:29 [RTF] [PATCH 00/26] gpio: use platform based module init kamlakant.patel
                   ` (2 preceding siblings ...)
  2014-09-09 10:29 ` [RTF] [PATCH 03/26] gpio: iop: " kamlakant.patel
@ 2014-09-09 10:29 ` kamlakant.patel
  2014-09-09 10:29 ` [RTF] [PATCH 05/26] gpio: mxc: " kamlakant.patel
                   ` (22 subsequent siblings)
  26 siblings, 0 replies; 29+ messages in thread
From: kamlakant.patel @ 2014-09-09 10:29 UTC (permalink / raw)
  To: Linus Walleij, Alexandre Courbot; +Cc: Kamlakant Patel, linux-gpio

From: Kamlakant Patel <kamlakant.patel@linaro.org>

Convert *_initcall based probing of GPIO drivers to regular
module_init based probe.

Signed-off-by: Kamlakant Patel <kamlakant.patel@linaro.org>
---
 drivers/gpio/gpio-msm-v1.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/drivers/gpio/gpio-msm-v1.c b/drivers/gpio/gpio-msm-v1.c
index 73b7396..bec524e 100644
--- a/drivers/gpio/gpio-msm-v1.c
+++ b/drivers/gpio/gpio-msm-v1.c
@@ -706,10 +706,6 @@ static struct platform_driver gpio_msm_v1_driver = {
 	.probe = gpio_msm_v1_probe,
 	.id_table = gpio_msm_v1_device_ids,
 };
+module_platform_driver(gpio_msm_v1_driver);
 
-static int __init gpio_msm_v1_init(void)
-{
-	return platform_driver_register(&gpio_msm_v1_driver);
-}
-postcore_initcall(gpio_msm_v1_init);
 MODULE_LICENSE("GPL v2");
-- 
1.9.1


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

* [RTF] [PATCH 05/26] gpio: mxc: use platform based module init
  2014-09-09 10:29 [RTF] [PATCH 00/26] gpio: use platform based module init kamlakant.patel
                   ` (3 preceding siblings ...)
  2014-09-09 10:29 ` [RTF] [PATCH 04/26] gpio: msm-v1: " kamlakant.patel
@ 2014-09-09 10:29 ` kamlakant.patel
  2014-09-09 10:29 ` [RTF] [PATCH 06/26] gpio: mxs: " kamlakant.patel
                   ` (21 subsequent siblings)
  26 siblings, 0 replies; 29+ messages in thread
From: kamlakant.patel @ 2014-09-09 10:29 UTC (permalink / raw)
  To: Linus Walleij, Alexandre Courbot; +Cc: Kamlakant Patel, linux-gpio

From: Kamlakant Patel <kamlakant.patel@linaro.org>

Convert *_initcall based probing of GPIO drivers to regular
module_init based probe.

Signed-off-by: Kamlakant Patel <kamlakant.patel@linaro.org>
---
 drivers/gpio/gpio-mxc.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/drivers/gpio/gpio-mxc.c b/drivers/gpio/gpio-mxc.c
index f4e54a9..750f0f6 100644
--- a/drivers/gpio/gpio-mxc.c
+++ b/drivers/gpio/gpio-mxc.c
@@ -502,12 +502,7 @@ static struct platform_driver mxc_gpio_driver = {
 	.probe		= mxc_gpio_probe,
 	.id_table	= mxc_gpio_devtype,
 };
-
-static int __init gpio_mxc_init(void)
-{
-	return platform_driver_register(&mxc_gpio_driver);
-}
-postcore_initcall(gpio_mxc_init);
+module_platform_driver(mxc_gpio_driver);
 
 MODULE_AUTHOR("Freescale Semiconductor, "
 	      "Daniel Mack <danielncaiaq.de>, "
-- 
1.9.1


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

* [RTF] [PATCH 06/26] gpio: mxs: use platform based module init
  2014-09-09 10:29 [RTF] [PATCH 00/26] gpio: use platform based module init kamlakant.patel
                   ` (4 preceding siblings ...)
  2014-09-09 10:29 ` [RTF] [PATCH 05/26] gpio: mxc: " kamlakant.patel
@ 2014-09-09 10:29 ` kamlakant.patel
  2014-09-09 10:29 ` [RTF] [PATCH 07/26] gpio: palmas: " kamlakant.patel
                   ` (20 subsequent siblings)
  26 siblings, 0 replies; 29+ messages in thread
From: kamlakant.patel @ 2014-09-09 10:29 UTC (permalink / raw)
  To: Linus Walleij, Alexandre Courbot; +Cc: Kamlakant Patel, linux-gpio

From: Kamlakant Patel <kamlakant.patel@linaro.org>

Convert *_initcall based probing of GPIO drivers to regular
module_init based probe.

Signed-off-by: Kamlakant Patel <kamlakant.patel@linaro.org>
---
 drivers/gpio/gpio-mxs.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/drivers/gpio/gpio-mxs.c b/drivers/gpio/gpio-mxs.c
index 8ffdd7d..8041445 100644
--- a/drivers/gpio/gpio-mxs.c
+++ b/drivers/gpio/gpio-mxs.c
@@ -344,12 +344,8 @@ static struct platform_driver mxs_gpio_driver = {
 	.probe		= mxs_gpio_probe,
 	.id_table	= mxs_gpio_ids,
 };
+module_platform_driver(mxs_gpio_driver);
 
-static int __init mxs_gpio_init(void)
-{
-	return platform_driver_register(&mxs_gpio_driver);
-}
-postcore_initcall(mxs_gpio_init);
 
 MODULE_AUTHOR("Freescale Semiconductor, "
 	      "Daniel Mack <danielncaiaq.de>, "
-- 
1.9.1


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

* [RTF] [PATCH 07/26] gpio: palmas: use platform based module init
  2014-09-09 10:29 [RTF] [PATCH 00/26] gpio: use platform based module init kamlakant.patel
                   ` (5 preceding siblings ...)
  2014-09-09 10:29 ` [RTF] [PATCH 06/26] gpio: mxs: " kamlakant.patel
@ 2014-09-09 10:29 ` kamlakant.patel
  2014-09-09 10:29 ` [RTF] [PATCH 08/26] gpio: SPEAr: " kamlakant.patel
                   ` (19 subsequent siblings)
  26 siblings, 0 replies; 29+ messages in thread
From: kamlakant.patel @ 2014-09-09 10:29 UTC (permalink / raw)
  To: Linus Walleij, Alexandre Courbot; +Cc: Kamlakant Patel, linux-gpio

From: Kamlakant Patel <kamlakant.patel@linaro.org>

Convert *_initcall based probing of GPIO drivers to regular
module_init based probe.

Signed-off-by: Kamlakant Patel <kamlakant.patel@linaro.org>
---
 drivers/gpio/gpio-palmas.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/drivers/gpio/gpio-palmas.c b/drivers/gpio/gpio-palmas.c
index 171a638..e593d42 100644
--- a/drivers/gpio/gpio-palmas.c
+++ b/drivers/gpio/gpio-palmas.c
@@ -221,18 +221,7 @@ static struct platform_driver palmas_gpio_driver = {
 	.probe		= palmas_gpio_probe,
 	.remove		= palmas_gpio_remove,
 };
-
-static int __init palmas_gpio_init(void)
-{
-	return platform_driver_register(&palmas_gpio_driver);
-}
-subsys_initcall(palmas_gpio_init);
-
-static void __exit palmas_gpio_exit(void)
-{
-	platform_driver_unregister(&palmas_gpio_driver);
-}
-module_exit(palmas_gpio_exit);
+module_platform_driver(palmas_gpio_driver);
 
 MODULE_ALIAS("platform:palmas-gpio");
 MODULE_AUTHOR("Laxman Dewangan <ldewangan@nvidia.com>");
-- 
1.9.1


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

* [RTF] [PATCH 08/26] gpio: SPEAr: use platform based module init
  2014-09-09 10:29 [RTF] [PATCH 00/26] gpio: use platform based module init kamlakant.patel
                   ` (6 preceding siblings ...)
  2014-09-09 10:29 ` [RTF] [PATCH 07/26] gpio: palmas: " kamlakant.patel
@ 2014-09-09 10:29 ` kamlakant.patel
  2014-09-09 10:29 ` [RTF] [PATCH 09/26] gpio: stmpe: " kamlakant.patel
                   ` (18 subsequent siblings)
  26 siblings, 0 replies; 29+ messages in thread
From: kamlakant.patel @ 2014-09-09 10:29 UTC (permalink / raw)
  To: Linus Walleij, Alexandre Courbot; +Cc: Kamlakant Patel, linux-gpio

From: Kamlakant Patel <kamlakant.patel@linaro.org>

Convert *_initcall based probing of GPIO drivers to regular
module_init based probe.

Signed-off-by: Kamlakant Patel <kamlakant.patel@linaro.org>
---
 drivers/gpio/gpio-spear-spics.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/drivers/gpio/gpio-spear-spics.c b/drivers/gpio/gpio-spear-spics.c
index 353263c..fe27b6d 100644
--- a/drivers/gpio/gpio-spear-spics.c
+++ b/drivers/gpio/gpio-spear-spics.c
@@ -196,12 +196,7 @@ static struct platform_driver spics_gpio_driver = {
 		.of_match_table = spics_gpio_of_match,
 	},
 };
-
-static int __init spics_gpio_init(void)
-{
-	return platform_driver_register(&spics_gpio_driver);
-}
-subsys_initcall(spics_gpio_init);
+module_platform_driver(spics_gpio_driver);
 
 MODULE_AUTHOR("Shiraz Hashim <shiraz.linux.kernel@gmail.com>");
 MODULE_DESCRIPTION("ST Microlectronics SPEAr SPI Chip Select Abstraction");
-- 
1.9.1


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

* [RTF] [PATCH 09/26] gpio: stmpe: use platform based module init
  2014-09-09 10:29 [RTF] [PATCH 00/26] gpio: use platform based module init kamlakant.patel
                   ` (7 preceding siblings ...)
  2014-09-09 10:29 ` [RTF] [PATCH 08/26] gpio: SPEAr: " kamlakant.patel
@ 2014-09-09 10:29 ` kamlakant.patel
  2014-09-09 10:29 ` [RTF] [PATCH 10/26] gpio: tc3589x: " kamlakant.patel
                   ` (17 subsequent siblings)
  26 siblings, 0 replies; 29+ messages in thread
From: kamlakant.patel @ 2014-09-09 10:29 UTC (permalink / raw)
  To: Linus Walleij, Alexandre Courbot; +Cc: Kamlakant Patel, linux-gpio

From: Kamlakant Patel <kamlakant.patel@linaro.org>

Convert *_initcall based probing of GPIO drivers to regular
module_init based probe.

Signed-off-by: Kamlakant Patel <kamlakant.patel@linaro.org>
---
 drivers/gpio/gpio-stmpe.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/drivers/gpio/gpio-stmpe.c b/drivers/gpio/gpio-stmpe.c
index 845025a..1504476 100644
--- a/drivers/gpio/gpio-stmpe.c
+++ b/drivers/gpio/gpio-stmpe.c
@@ -372,18 +372,7 @@ static struct platform_driver stmpe_gpio_driver = {
 	.probe		= stmpe_gpio_probe,
 	.remove		= stmpe_gpio_remove,
 };
-
-static int __init stmpe_gpio_init(void)
-{
-	return platform_driver_register(&stmpe_gpio_driver);
-}
-subsys_initcall(stmpe_gpio_init);
-
-static void __exit stmpe_gpio_exit(void)
-{
-	platform_driver_unregister(&stmpe_gpio_driver);
-}
-module_exit(stmpe_gpio_exit);
+module_platform_driver(stmpe_gpio_driver);
 
 MODULE_LICENSE("GPL v2");
 MODULE_DESCRIPTION("STMPExxxx GPIO driver");
-- 
1.9.1


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

* [RTF] [PATCH 10/26] gpio: tc3589x: use platform based module init
  2014-09-09 10:29 [RTF] [PATCH 00/26] gpio: use platform based module init kamlakant.patel
                   ` (8 preceding siblings ...)
  2014-09-09 10:29 ` [RTF] [PATCH 09/26] gpio: stmpe: " kamlakant.patel
@ 2014-09-09 10:29 ` kamlakant.patel
  2014-09-09 10:29 ` [RTF] [PATCH 11/26] gpio: tps6586x: " kamlakant.patel
                   ` (16 subsequent siblings)
  26 siblings, 0 replies; 29+ messages in thread
From: kamlakant.patel @ 2014-09-09 10:29 UTC (permalink / raw)
  To: Linus Walleij, Alexandre Courbot; +Cc: Kamlakant Patel, linux-gpio

From: Kamlakant Patel <kamlakant.patel@linaro.org>

Convert *_initcall based probing of GPIO drivers to regular
module_init based probe.

Signed-off-by: Kamlakant Patel <kamlakant.patel@linaro.org>
---
 drivers/gpio/gpio-tc3589x.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/drivers/gpio/gpio-tc3589x.c b/drivers/gpio/gpio-tc3589x.c
index 7324869..b67016f 100644
--- a/drivers/gpio/gpio-tc3589x.c
+++ b/drivers/gpio/gpio-tc3589x.c
@@ -328,18 +328,7 @@ static struct platform_driver tc3589x_gpio_driver = {
 	.probe		= tc3589x_gpio_probe,
 	.remove		= tc3589x_gpio_remove,
 };
-
-static int __init tc3589x_gpio_init(void)
-{
-	return platform_driver_register(&tc3589x_gpio_driver);
-}
-subsys_initcall(tc3589x_gpio_init);
-
-static void __exit tc3589x_gpio_exit(void)
-{
-	platform_driver_unregister(&tc3589x_gpio_driver);
-}
-module_exit(tc3589x_gpio_exit);
+module_platform_driver(tc3589x_gpio_driver);
 
 MODULE_LICENSE("GPL v2");
 MODULE_DESCRIPTION("TC3589x GPIO driver");
-- 
1.9.1


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

* [RTF] [PATCH 11/26] gpio: tps6586x: use platform based module init
  2014-09-09 10:29 [RTF] [PATCH 00/26] gpio: use platform based module init kamlakant.patel
                   ` (9 preceding siblings ...)
  2014-09-09 10:29 ` [RTF] [PATCH 10/26] gpio: tc3589x: " kamlakant.patel
@ 2014-09-09 10:29 ` kamlakant.patel
  2014-09-09 10:29 ` [RTF] [PATCH 12/26] gpio: tps65910: " kamlakant.patel
                   ` (15 subsequent siblings)
  26 siblings, 0 replies; 29+ messages in thread
From: kamlakant.patel @ 2014-09-09 10:29 UTC (permalink / raw)
  To: Linus Walleij, Alexandre Courbot; +Cc: Kamlakant Patel, linux-gpio

From: Kamlakant Patel <kamlakant.patel@linaro.org>

Convert *_initcall based probing of GPIO drivers to regular
module_init based probe.

Signed-off-by: Kamlakant Patel <kamlakant.patel@linaro.org>
---
 drivers/gpio/gpio-tps6586x.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/drivers/gpio/gpio-tps6586x.c b/drivers/gpio/gpio-tps6586x.c
index 9c9238e..f1a5221 100644
--- a/drivers/gpio/gpio-tps6586x.c
+++ b/drivers/gpio/gpio-tps6586x.c
@@ -147,18 +147,7 @@ static struct platform_driver tps6586x_gpio_driver = {
 	.probe		= tps6586x_gpio_probe,
 	.remove		= tps6586x_gpio_remove,
 };
-
-static int __init tps6586x_gpio_init(void)
-{
-	return platform_driver_register(&tps6586x_gpio_driver);
-}
-subsys_initcall(tps6586x_gpio_init);
-
-static void __exit tps6586x_gpio_exit(void)
-{
-	platform_driver_unregister(&tps6586x_gpio_driver);
-}
-module_exit(tps6586x_gpio_exit);
+module_platform_driver(tps6586x_gpio_driver);
 
 MODULE_ALIAS("platform:tps6586x-gpio");
 MODULE_DESCRIPTION("GPIO interface for TPS6586X PMIC");
-- 
1.9.1


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

* [RTF] [PATCH 12/26] gpio: tps65910: use platform based module init
  2014-09-09 10:29 [RTF] [PATCH 00/26] gpio: use platform based module init kamlakant.patel
                   ` (10 preceding siblings ...)
  2014-09-09 10:29 ` [RTF] [PATCH 11/26] gpio: tps6586x: " kamlakant.patel
@ 2014-09-09 10:29 ` kamlakant.patel
  2014-09-09 10:29 ` [RTF] [PATCH 13/26] gpio: " kamlakant.patel
                   ` (14 subsequent siblings)
  26 siblings, 0 replies; 29+ messages in thread
From: kamlakant.patel @ 2014-09-09 10:29 UTC (permalink / raw)
  To: Linus Walleij, Alexandre Courbot; +Cc: Kamlakant Patel, linux-gpio

From: Kamlakant Patel <kamlakant.patel@linaro.org>

Convert *_initcall based probing of GPIO drivers to regular
module_init based probe.

Signed-off-by: Kamlakant Patel <kamlakant.patel@linaro.org>
---
 drivers/gpio/gpio-tps65910.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/drivers/gpio/gpio-tps65910.c b/drivers/gpio/gpio-tps65910.c
index 88f1f5f..a5e6665 100644
--- a/drivers/gpio/gpio-tps65910.c
+++ b/drivers/gpio/gpio-tps65910.c
@@ -200,18 +200,7 @@ static struct platform_driver tps65910_gpio_driver = {
 	.probe		= tps65910_gpio_probe,
 	.remove		= tps65910_gpio_remove,
 };
-
-static int __init tps65910_gpio_init(void)
-{
-	return platform_driver_register(&tps65910_gpio_driver);
-}
-subsys_initcall(tps65910_gpio_init);
-
-static void __exit tps65910_gpio_exit(void)
-{
-	platform_driver_unregister(&tps65910_gpio_driver);
-}
-module_exit(tps65910_gpio_exit);
+module_platform_driver(tps65910_gpio_driver);
 
 MODULE_AUTHOR("Graeme Gregory <gg@slimlogic.co.uk>");
 MODULE_AUTHOR("Jorge Eduardo Candelaria jedu@slimlogic.co.uk>");
-- 
1.9.1


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

* [RTF] [PATCH 13/26] gpio: use platform based module init
  2014-09-09 10:29 [RTF] [PATCH 00/26] gpio: use platform based module init kamlakant.patel
                   ` (11 preceding siblings ...)
  2014-09-09 10:29 ` [RTF] [PATCH 12/26] gpio: tps65910: " kamlakant.patel
@ 2014-09-09 10:29 ` kamlakant.patel
  2014-09-09 10:29 ` [RTF] [PATCH 14/26] gpio: twl4030: " kamlakant.patel
                   ` (13 subsequent siblings)
  26 siblings, 0 replies; 29+ messages in thread
From: kamlakant.patel @ 2014-09-09 10:29 UTC (permalink / raw)
  To: Linus Walleij, Alexandre Courbot; +Cc: Kamlakant Patel, linux-gpio

From: Kamlakant Patel <kamlakant.patel@linaro.org>

Convert *_initcall based probing of GPIO drivers to regular
module_init based probe.

Signed-off-by: Kamlakant Patel <kamlakant.patel@linaro.org>
---
 drivers/gpio/gpio-tps65912.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/drivers/gpio/gpio-tps65912.c b/drivers/gpio/gpio-tps65912.c
index 22052d8..8d7ec10 100644
--- a/drivers/gpio/gpio-tps65912.c
+++ b/drivers/gpio/gpio-tps65912.c
@@ -129,18 +129,7 @@ static struct platform_driver tps65912_gpio_driver = {
 	.probe = tps65912_gpio_probe,
 	.remove = tps65912_gpio_remove,
 };
-
-static int __init tps65912_gpio_init(void)
-{
-	return platform_driver_register(&tps65912_gpio_driver);
-}
-subsys_initcall(tps65912_gpio_init);
-
-static void __exit tps65912_gpio_exit(void)
-{
-	platform_driver_unregister(&tps65912_gpio_driver);
-}
-module_exit(tps65912_gpio_exit);
+module_platform_driver(tps65912_gpio_driver);
 
 MODULE_AUTHOR("Margarita Olaya Cabrera <magi@slimlogic.co.uk>");
 MODULE_DESCRIPTION("GPIO interface for TPS65912 PMICs");
-- 
1.9.1


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

* [RTF] [PATCH 14/26] gpio: twl4030: use platform based module init
  2014-09-09 10:29 [RTF] [PATCH 00/26] gpio: use platform based module init kamlakant.patel
                   ` (12 preceding siblings ...)
  2014-09-09 10:29 ` [RTF] [PATCH 13/26] gpio: " kamlakant.patel
@ 2014-09-09 10:29 ` kamlakant.patel
  2014-09-09 10:29 ` [RTF] [PATCH 15/26] gpio: wm831x: " kamlakant.patel
                   ` (12 subsequent siblings)
  26 siblings, 0 replies; 29+ messages in thread
From: kamlakant.patel @ 2014-09-09 10:29 UTC (permalink / raw)
  To: Linus Walleij, Alexandre Courbot; +Cc: Kamlakant Patel, linux-gpio

From: Kamlakant Patel <kamlakant.patel@linaro.org>

Convert *_initcall based probing of GPIO drivers to regular
module_init based probe.

Signed-off-by: Kamlakant Patel <kamlakant.patel@linaro.org>
---
 drivers/gpio/gpio-twl4030.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/drivers/gpio/gpio-twl4030.c b/drivers/gpio/gpio-twl4030.c
index 118828b..b6aa502 100644
--- a/drivers/gpio/gpio-twl4030.c
+++ b/drivers/gpio/gpio-twl4030.c
@@ -611,18 +611,7 @@ static struct platform_driver gpio_twl4030_driver = {
 	.probe		= gpio_twl4030_probe,
 	.remove		= gpio_twl4030_remove,
 };
-
-static int __init gpio_twl4030_init(void)
-{
-	return platform_driver_register(&gpio_twl4030_driver);
-}
-subsys_initcall(gpio_twl4030_init);
-
-static void __exit gpio_twl4030_exit(void)
-{
-	platform_driver_unregister(&gpio_twl4030_driver);
-}
-module_exit(gpio_twl4030_exit);
+module_platform_driver(gpio_twl4030_driver);
 
 MODULE_AUTHOR("Texas Instruments, Inc.");
 MODULE_DESCRIPTION("GPIO interface for TWL4030");
-- 
1.9.1


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

* [RTF] [PATCH 15/26] gpio: wm831x: use platform based module init
  2014-09-09 10:29 [RTF] [PATCH 00/26] gpio: use platform based module init kamlakant.patel
                   ` (13 preceding siblings ...)
  2014-09-09 10:29 ` [RTF] [PATCH 14/26] gpio: twl4030: " kamlakant.patel
@ 2014-09-09 10:29 ` kamlakant.patel
  2014-09-09 10:29 ` [RTF] [PATCH 16/26] gpio: wm8350: " kamlakant.patel
                   ` (11 subsequent siblings)
  26 siblings, 0 replies; 29+ messages in thread
From: kamlakant.patel @ 2014-09-09 10:29 UTC (permalink / raw)
  To: Linus Walleij, Alexandre Courbot; +Cc: Kamlakant Patel, linux-gpio

From: Kamlakant Patel <kamlakant.patel@linaro.org>

Convert *_initcall based probing of GPIO drivers to regular
module_init based probe.

Signed-off-by: Kamlakant Patel <kamlakant.patel@linaro.org>
---
 drivers/gpio/gpio-wm831x.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/drivers/gpio/gpio-wm831x.c b/drivers/gpio/gpio-wm831x.c
index 58ce75c..22d4b17 100644
--- a/drivers/gpio/gpio-wm831x.c
+++ b/drivers/gpio/gpio-wm831x.c
@@ -289,18 +289,7 @@ static struct platform_driver wm831x_gpio_driver = {
 	.probe		= wm831x_gpio_probe,
 	.remove		= wm831x_gpio_remove,
 };
-
-static int __init wm831x_gpio_init(void)
-{
-	return platform_driver_register(&wm831x_gpio_driver);
-}
-subsys_initcall(wm831x_gpio_init);
-
-static void __exit wm831x_gpio_exit(void)
-{
-	platform_driver_unregister(&wm831x_gpio_driver);
-}
-module_exit(wm831x_gpio_exit);
+module_platform_driver(wm831x_gpio_driver);
 
 MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>");
 MODULE_DESCRIPTION("GPIO interface for WM831x PMICs");
-- 
1.9.1


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

* [RTF] [PATCH 16/26] gpio: wm8350: use platform based module init
  2014-09-09 10:29 [RTF] [PATCH 00/26] gpio: use platform based module init kamlakant.patel
                   ` (14 preceding siblings ...)
  2014-09-09 10:29 ` [RTF] [PATCH 15/26] gpio: wm831x: " kamlakant.patel
@ 2014-09-09 10:29 ` kamlakant.patel
  2014-09-09 10:29 ` [RTF] [PATCH 17/26] gpio: wm8994: " kamlakant.patel
                   ` (10 subsequent siblings)
  26 siblings, 0 replies; 29+ messages in thread
From: kamlakant.patel @ 2014-09-09 10:29 UTC (permalink / raw)
  To: Linus Walleij, Alexandre Courbot; +Cc: Kamlakant Patel, linux-gpio

From: Kamlakant Patel <kamlakant.patel@linaro.org>

Convert *_initcall based probing of GPIO drivers to regular
module_init based probe.

Signed-off-by: Kamlakant Patel <kamlakant.patel@linaro.org>
---
 drivers/gpio/gpio-wm8350.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/drivers/gpio/gpio-wm8350.c b/drivers/gpio/gpio-wm8350.c
index 060b893..7016eef 100644
--- a/drivers/gpio/gpio-wm8350.c
+++ b/drivers/gpio/gpio-wm8350.c
@@ -155,18 +155,7 @@ static struct platform_driver wm8350_gpio_driver = {
 	.probe		= wm8350_gpio_probe,
 	.remove		= wm8350_gpio_remove,
 };
-
-static int __init wm8350_gpio_init(void)
-{
-	return platform_driver_register(&wm8350_gpio_driver);
-}
-subsys_initcall(wm8350_gpio_init);
-
-static void __exit wm8350_gpio_exit(void)
-{
-	platform_driver_unregister(&wm8350_gpio_driver);
-}
-module_exit(wm8350_gpio_exit);
+module_platform_driver(wm8350_gpio_driver);
 
 MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>");
 MODULE_DESCRIPTION("GPIO interface for WM8350 PMICs");
-- 
1.9.1


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

* [RTF] [PATCH 17/26] gpio: wm8994: use platform based module init
  2014-09-09 10:29 [RTF] [PATCH 00/26] gpio: use platform based module init kamlakant.patel
                   ` (15 preceding siblings ...)
  2014-09-09 10:29 ` [RTF] [PATCH 16/26] gpio: wm8350: " kamlakant.patel
@ 2014-09-09 10:29 ` kamlakant.patel
  2014-09-09 10:29 ` [RTF] [PATCH 18/26] gpio: zynq: " kamlakant.patel
                   ` (9 subsequent siblings)
  26 siblings, 0 replies; 29+ messages in thread
From: kamlakant.patel @ 2014-09-09 10:29 UTC (permalink / raw)
  To: Linus Walleij, Alexandre Courbot; +Cc: Kamlakant Patel, linux-gpio

From: Kamlakant Patel <kamlakant.patel@linaro.org>

Convert *_initcall based probing of GPIO drivers to regular
module_init based probe.

Signed-off-by: Kamlakant Patel <kamlakant.patel@linaro.org>
---
 drivers/gpio/gpio-wm8994.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/drivers/gpio/gpio-wm8994.c b/drivers/gpio/gpio-wm8994.c
index 6f5e42d..4f4a488 100644
--- a/drivers/gpio/gpio-wm8994.c
+++ b/drivers/gpio/gpio-wm8994.c
@@ -295,18 +295,7 @@ static struct platform_driver wm8994_gpio_driver = {
 	.probe		= wm8994_gpio_probe,
 	.remove		= wm8994_gpio_remove,
 };
-
-static int __init wm8994_gpio_init(void)
-{
-	return platform_driver_register(&wm8994_gpio_driver);
-}
-subsys_initcall(wm8994_gpio_init);
-
-static void __exit wm8994_gpio_exit(void)
-{
-	platform_driver_unregister(&wm8994_gpio_driver);
-}
-module_exit(wm8994_gpio_exit);
+module_platform_driver(wm8994_gpio_driver);
 
 MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>");
 MODULE_DESCRIPTION("GPIO interface for WM8994");
-- 
1.9.1


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

* [RTF] [PATCH 18/26] gpio: zynq: use platform based module init
  2014-09-09 10:29 [RTF] [PATCH 00/26] gpio: use platform based module init kamlakant.patel
                   ` (16 preceding siblings ...)
  2014-09-09 10:29 ` [RTF] [PATCH 17/26] gpio: wm8994: " kamlakant.patel
@ 2014-09-09 10:29 ` kamlakant.patel
  2014-09-09 10:29 ` [RTF] [PATCH 19/26] gpio: da9055: " kamlakant.patel
                   ` (8 subsequent siblings)
  26 siblings, 0 replies; 29+ messages in thread
From: kamlakant.patel @ 2014-09-09 10:29 UTC (permalink / raw)
  To: Linus Walleij, Alexandre Courbot; +Cc: Kamlakant Patel, linux-gpio

From: Kamlakant Patel <kamlakant.patel@linaro.org>

Convert *_initcall based probing of GPIO drivers to regular
module_init based probe.

Signed-off-by: Kamlakant Patel <kamlakant.patel@linaro.org>
---
 drivers/gpio/gpio-zynq.c | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/drivers/gpio/gpio-zynq.c b/drivers/gpio/gpio-zynq.c
index 31ad5df..a112600 100644
--- a/drivers/gpio/gpio-zynq.c
+++ b/drivers/gpio/gpio-zynq.c
@@ -695,17 +695,7 @@ static struct platform_driver zynq_gpio_driver = {
 	.probe = zynq_gpio_probe,
 	.remove = zynq_gpio_remove,
 };
-
-/**
- * zynq_gpio_init - Initial driver registration call
- *
- * Return: value from platform_driver_register
- */
-static int __init zynq_gpio_init(void)
-{
-	return platform_driver_register(&zynq_gpio_driver);
-}
-postcore_initcall(zynq_gpio_init);
+module_platform_driver(zynq_gpio_driver);
 
 MODULE_AUTHOR("Xilinx Inc.");
 MODULE_DESCRIPTION("Zynq GPIO driver");
-- 
1.9.1


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

* [RTF] [PATCH 19/26] gpio: da9055: use platform based module init
  2014-09-09 10:29 [RTF] [PATCH 00/26] gpio: use platform based module init kamlakant.patel
                   ` (17 preceding siblings ...)
  2014-09-09 10:29 ` [RTF] [PATCH 18/26] gpio: zynq: " kamlakant.patel
@ 2014-09-09 10:29 ` kamlakant.patel
  2014-09-09 10:29 ` [RTF] [PATCH 20/26] gpio: lynxpoint: " kamlakant.patel
                   ` (7 subsequent siblings)
  26 siblings, 0 replies; 29+ messages in thread
From: kamlakant.patel @ 2014-09-09 10:29 UTC (permalink / raw)
  To: Linus Walleij, Alexandre Courbot; +Cc: Kamlakant Patel, linux-gpio

From: Kamlakant Patel <kamlakant.patel@linaro.org>

Convert *_initcall based probing of GPIO drivers to regular
module_init based probe.

Signed-off-by: Kamlakant Patel <kamlakant.patel@linaro.org>
---
 drivers/gpio/gpio-da9055.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/drivers/gpio/gpio-da9055.c b/drivers/gpio/gpio-da9055.c
index 9167c43..21c31b0 100644
--- a/drivers/gpio/gpio-da9055.c
+++ b/drivers/gpio/gpio-da9055.c
@@ -186,18 +186,7 @@ static struct platform_driver da9055_gpio_driver = {
 		.owner	= THIS_MODULE,
 	},
 };
-
-static int __init da9055_gpio_init(void)
-{
-	return platform_driver_register(&da9055_gpio_driver);
-}
-subsys_initcall(da9055_gpio_init);
-
-static void __exit da9055_gpio_exit(void)
-{
-	platform_driver_unregister(&da9055_gpio_driver);
-}
-module_exit(da9055_gpio_exit);
+module_platform_driver(da9055_gpio_driver);
 
 MODULE_AUTHOR("David Dajun Chen <dchen@diasemi.com>");
 MODULE_DESCRIPTION("DA9055 GPIO Device Driver");
-- 
1.9.1


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

* [RTF] [PATCH 20/26] gpio: lynxpoint: use platform based module init
  2014-09-09 10:29 [RTF] [PATCH 00/26] gpio: use platform based module init kamlakant.patel
                   ` (18 preceding siblings ...)
  2014-09-09 10:29 ` [RTF] [PATCH 19/26] gpio: da9055: " kamlakant.patel
@ 2014-09-09 10:29 ` kamlakant.patel
  2014-09-09 10:29 ` [RTF] [PATCH 21/26] gpio: lantiq: " kamlakant.patel
                   ` (6 subsequent siblings)
  26 siblings, 0 replies; 29+ messages in thread
From: kamlakant.patel @ 2014-09-09 10:29 UTC (permalink / raw)
  To: Linus Walleij, Alexandre Courbot; +Cc: Kamlakant Patel, linux-gpio

From: Kamlakant Patel <kamlakant.patel@linaro.org>

Convert *_initcall based probing of GPIO drivers to regular
module_init based probe.

Signed-off-by: Kamlakant Patel <kamlakant.patel@linaro.org>
---
 drivers/gpio/gpio-lynxpoint.c | 14 +-------------
 1 file changed, 1 insertion(+), 13 deletions(-)

diff --git a/drivers/gpio/gpio-lynxpoint.c b/drivers/gpio/gpio-lynxpoint.c
index fa945ec..1b676f3 100644
--- a/drivers/gpio/gpio-lynxpoint.c
+++ b/drivers/gpio/gpio-lynxpoint.c
@@ -455,19 +455,7 @@ static struct platform_driver lp_gpio_driver = {
 		.acpi_match_table = ACPI_PTR(lynxpoint_gpio_acpi_match),
 	},
 };
-
-static int __init lp_gpio_init(void)
-{
-	return platform_driver_register(&lp_gpio_driver);
-}
-
-static void __exit lp_gpio_exit(void)
-{
-	platform_driver_unregister(&lp_gpio_driver);
-}
-
-subsys_initcall(lp_gpio_init);
-module_exit(lp_gpio_exit);
+module_platform_driver(lp_gpio_driver);
 
 MODULE_AUTHOR("Mathias Nyman (Intel)");
 MODULE_DESCRIPTION("GPIO interface for Intel Lynxpoint");
-- 
1.9.1


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

* [RTF] [PATCH 21/26] gpio: lantiq: use platform based module init
  2014-09-09 10:29 [RTF] [PATCH 00/26] gpio: use platform based module init kamlakant.patel
                   ` (19 preceding siblings ...)
  2014-09-09 10:29 ` [RTF] [PATCH 20/26] gpio: lynxpoint: " kamlakant.patel
@ 2014-09-09 10:29 ` kamlakant.patel
  2014-09-09 10:29 ` [RTF] [PATCH 22/26] gpio: msic: " kamlakant.patel
                   ` (5 subsequent siblings)
  26 siblings, 0 replies; 29+ messages in thread
From: kamlakant.patel @ 2014-09-09 10:29 UTC (permalink / raw)
  To: Linus Walleij, Alexandre Courbot; +Cc: Kamlakant Patel, linux-gpio

From: Kamlakant Patel <kamlakant.patel@linaro.org>

Convert *_initcall based probing of GPIO drivers to regular
module_init based probe.

Signed-off-by: Kamlakant Patel <kamlakant.patel@linaro.org>
---
 drivers/gpio/gpio-mm-lantiq.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/drivers/gpio/gpio-mm-lantiq.c b/drivers/gpio/gpio-mm-lantiq.c
index 2983dfb..142f638 100644
--- a/drivers/gpio/gpio-mm-lantiq.c
+++ b/drivers/gpio/gpio-mm-lantiq.c
@@ -149,10 +149,4 @@ static struct platform_driver ltq_mm_driver = {
 		.of_match_table = ltq_mm_match,
 	},
 };
-
-static int __init ltq_mm_init(void)
-{
-	return platform_driver_register(&ltq_mm_driver);
-}
-
-subsys_initcall(ltq_mm_init);
+module_platform_driver(ltq_mm_driver);
-- 
1.9.1


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

* [RTF] [PATCH 22/26] gpio: msic: use platform based module init
  2014-09-09 10:29 [RTF] [PATCH 00/26] gpio: use platform based module init kamlakant.patel
                   ` (20 preceding siblings ...)
  2014-09-09 10:29 ` [RTF] [PATCH 21/26] gpio: lantiq: " kamlakant.patel
@ 2014-09-09 10:29 ` kamlakant.patel
  2014-09-09 10:29 ` [RTF] [PATCH 23/26] gpio: rc5t583: " kamlakant.patel
                   ` (4 subsequent siblings)
  26 siblings, 0 replies; 29+ messages in thread
From: kamlakant.patel @ 2014-09-09 10:29 UTC (permalink / raw)
  To: Linus Walleij, Alexandre Courbot; +Cc: Kamlakant Patel, linux-gpio

From: Kamlakant Patel <kamlakant.patel@linaro.org>

Convert *_initcall based probing of GPIO drivers to regular
module_init based probe.

Signed-off-by: Kamlakant Patel <kamlakant.patel@linaro.org>
---
 drivers/gpio/gpio-msic.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/drivers/gpio/gpio-msic.c b/drivers/gpio/gpio-msic.c
index 8f70ded..6d0f5ec 100644
--- a/drivers/gpio/gpio-msic.c
+++ b/drivers/gpio/gpio-msic.c
@@ -325,13 +325,7 @@ static struct platform_driver platform_msic_gpio_driver = {
 	},
 	.probe		= platform_msic_gpio_probe,
 };
-
-static int __init platform_msic_gpio_init(void)
-{
-	return platform_driver_register(&platform_msic_gpio_driver);
-}
-
-subsys_initcall(platform_msic_gpio_init);
+module_platform_driver(platform_msic_gpio_driver);
 
 MODULE_AUTHOR("Mathias Nyman <mathias.nyman@linux.intel.com>");
 MODULE_DESCRIPTION("Intel Medfield MSIC GPIO driver");
-- 
1.9.1


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

* [RTF] [PATCH 23/26] gpio: rc5t583: use platform based module init
  2014-09-09 10:29 [RTF] [PATCH 00/26] gpio: use platform based module init kamlakant.patel
                   ` (21 preceding siblings ...)
  2014-09-09 10:29 ` [RTF] [PATCH 22/26] gpio: msic: " kamlakant.patel
@ 2014-09-09 10:29 ` kamlakant.patel
  2014-09-09 10:29 ` [RTF] [PATCH 24/26] gpio: xway: " kamlakant.patel
                   ` (3 subsequent siblings)
  26 siblings, 0 replies; 29+ messages in thread
From: kamlakant.patel @ 2014-09-09 10:29 UTC (permalink / raw)
  To: Linus Walleij, Alexandre Courbot; +Cc: Kamlakant Patel, linux-gpio

From: Kamlakant Patel <kamlakant.patel@linaro.org>

Convert *_initcall based probing of GPIO drivers to regular
module_init based probe.

Signed-off-by: Kamlakant Patel <kamlakant.patel@linaro.org>
---
 drivers/gpio/gpio-rc5t583.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/drivers/gpio/gpio-rc5t583.c b/drivers/gpio/gpio-rc5t583.c
index 769233d..1074f99 100644
--- a/drivers/gpio/gpio-rc5t583.c
+++ b/drivers/gpio/gpio-rc5t583.c
@@ -160,18 +160,7 @@ static struct platform_driver rc5t583_gpio_driver = {
 	.probe		= rc5t583_gpio_probe,
 	.remove		= rc5t583_gpio_remove,
 };
-
-static int __init rc5t583_gpio_init(void)
-{
-	return platform_driver_register(&rc5t583_gpio_driver);
-}
-subsys_initcall(rc5t583_gpio_init);
-
-static void __exit rc5t583_gpio_exit(void)
-{
-	platform_driver_unregister(&rc5t583_gpio_driver);
-}
-module_exit(rc5t583_gpio_exit);
+module_platform_driver(rc5t583_gpio_driver);
 
 MODULE_AUTHOR("Laxman Dewangan <ldewangan@nvidia.com>");
 MODULE_DESCRIPTION("GPIO interface for RC5T583");
-- 
1.9.1


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

* [RTF] [PATCH 24/26] gpio: xway: use platform based module init
  2014-09-09 10:29 [RTF] [PATCH 00/26] gpio: use platform based module init kamlakant.patel
                   ` (22 preceding siblings ...)
  2014-09-09 10:29 ` [RTF] [PATCH 23/26] gpio: rc5t583: " kamlakant.patel
@ 2014-09-09 10:29 ` kamlakant.patel
  2014-09-09 10:29 ` [RTF] [PATCH 25/26] gpio: tz1090-pdc: " kamlakant.patel
                   ` (2 subsequent siblings)
  26 siblings, 0 replies; 29+ messages in thread
From: kamlakant.patel @ 2014-09-09 10:29 UTC (permalink / raw)
  To: Linus Walleij, Alexandre Courbot; +Cc: Kamlakant Patel, linux-gpio

From: Kamlakant Patel <kamlakant.patel@linaro.org>

Convert *_initcall based probing of GPIO drivers to regular
module_init based probe.

Signed-off-by: Kamlakant Patel <kamlakant.patel@linaro.org>
---
 drivers/gpio/gpio-stp-xway.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/drivers/gpio/gpio-stp-xway.c b/drivers/gpio/gpio-stp-xway.c
index 04882a9..0f7088c 100644
--- a/drivers/gpio/gpio-stp-xway.c
+++ b/drivers/gpio/gpio-stp-xway.c
@@ -291,10 +291,4 @@ static struct platform_driver xway_stp_driver = {
 		.of_match_table = xway_stp_match,
 	},
 };
-
-int __init xway_stp_init(void)
-{
-	return platform_driver_register(&xway_stp_driver);
-}
-
-subsys_initcall(xway_stp_init);
+module_platform_driver(xway_stp_driver);
-- 
1.9.1


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

* [RTF] [PATCH 25/26] gpio: tz1090-pdc: use platform based module init
  2014-09-09 10:29 [RTF] [PATCH 00/26] gpio: use platform based module init kamlakant.patel
                   ` (23 preceding siblings ...)
  2014-09-09 10:29 ` [RTF] [PATCH 24/26] gpio: xway: " kamlakant.patel
@ 2014-09-09 10:29 ` kamlakant.patel
  2014-09-09 10:29 ` [RTF] [PATCH 26/26] gpio: tz1090: " kamlakant.patel
  2014-09-19  8:36 ` [RTF] [PATCH 00/26] gpio: " Alexandre Courbot
  26 siblings, 0 replies; 29+ messages in thread
From: kamlakant.patel @ 2014-09-09 10:29 UTC (permalink / raw)
  To: Linus Walleij, Alexandre Courbot; +Cc: Kamlakant Patel, linux-gpio

From: Kamlakant Patel <kamlakant.patel@linaro.org>

Convert *_initcall based probing of GPIO drivers to regular
module_init based probe.

Signed-off-by: Kamlakant Patel <kamlakant.patel@linaro.org>
---
 drivers/gpio/gpio-tz1090-pdc.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/drivers/gpio/gpio-tz1090-pdc.c b/drivers/gpio/gpio-tz1090-pdc.c
index f512da2..7eeebe9 100644
--- a/drivers/gpio/gpio-tz1090-pdc.c
+++ b/drivers/gpio/gpio-tz1090-pdc.c
@@ -235,9 +235,4 @@ static struct platform_driver tz1090_pdc_gpio_driver = {
 	},
 	.probe		= tz1090_pdc_gpio_probe,
 };
-
-static int __init tz1090_pdc_gpio_init(void)
-{
-	return platform_driver_register(&tz1090_pdc_gpio_driver);
-}
-subsys_initcall(tz1090_pdc_gpio_init);
+module_platform_driver(tz1090_pdc_gpio_driver);
-- 
1.9.1


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

* [RTF] [PATCH 26/26] gpio: tz1090: use platform based module init
  2014-09-09 10:29 [RTF] [PATCH 00/26] gpio: use platform based module init kamlakant.patel
                   ` (24 preceding siblings ...)
  2014-09-09 10:29 ` [RTF] [PATCH 25/26] gpio: tz1090-pdc: " kamlakant.patel
@ 2014-09-09 10:29 ` kamlakant.patel
  2014-09-19  8:36 ` [RTF] [PATCH 00/26] gpio: " Alexandre Courbot
  26 siblings, 0 replies; 29+ messages in thread
From: kamlakant.patel @ 2014-09-09 10:29 UTC (permalink / raw)
  To: Linus Walleij, Alexandre Courbot; +Cc: Kamlakant Patel, linux-gpio

From: Kamlakant Patel <kamlakant.patel@linaro.org>

Convert *_initcall based probing of GPIO drivers to regular
module_init based probe.

Signed-off-by: Kamlakant Patel <kamlakant.patel@linaro.org>
---
 drivers/gpio/gpio-tz1090.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/drivers/gpio/gpio-tz1090.c b/drivers/gpio/gpio-tz1090.c
index 5246a60..edb9d15 100644
--- a/drivers/gpio/gpio-tz1090.c
+++ b/drivers/gpio/gpio-tz1090.c
@@ -598,9 +598,4 @@ static struct platform_driver tz1090_gpio_driver = {
 	},
 	.probe		= tz1090_gpio_probe,
 };
-
-static int __init tz1090_gpio_init(void)
-{
-	return platform_driver_register(&tz1090_gpio_driver);
-}
-subsys_initcall(tz1090_gpio_init);
+module_platform_driver(tz1090_gpio_driver);
-- 
1.9.1


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

* Re: [RTF] [PATCH 00/26] gpio: use platform based module init
  2014-09-09 10:29 [RTF] [PATCH 00/26] gpio: use platform based module init kamlakant.patel
                   ` (25 preceding siblings ...)
  2014-09-09 10:29 ` [RTF] [PATCH 26/26] gpio: tz1090: " kamlakant.patel
@ 2014-09-19  8:36 ` Alexandre Courbot
  2014-09-24  8:03   ` Linus Walleij
  26 siblings, 1 reply; 29+ messages in thread
From: Alexandre Courbot @ 2014-09-19  8:36 UTC (permalink / raw)
  To: kamlakant.patel; +Cc: Linus Walleij, linux-gpio

On Tue, Sep 9, 2014 at 7:29 PM,  <kamlakant.patel@linaro.org> wrote:
> From: Kamlakant Patel <kamlakant.patel@linaro.org>
>
> This patch removes *_initcall based driver initialization
> and adds regular module_platform_driver to instantiate
> GPIO drivers which makes the code smaller and simpler.
>
> NOTE: This patch needs to be tested on different platforms.

I'd say this looks good - have you at least tested this on one or more
of the modified drivers?

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

* Re: [RTF] [PATCH 00/26] gpio: use platform based module init
  2014-09-19  8:36 ` [RTF] [PATCH 00/26] gpio: " Alexandre Courbot
@ 2014-09-24  8:03   ` Linus Walleij
  0 siblings, 0 replies; 29+ messages in thread
From: Linus Walleij @ 2014-09-24  8:03 UTC (permalink / raw)
  To: Alexandre Courbot; +Cc: Kamlakant Patel, linux-gpio

On Fri, Sep 19, 2014 at 10:36 AM, Alexandre Courbot <gnurou@gmail.com> wrote:
> On Tue, Sep 9, 2014 at 7:29 PM,  <kamlakant.patel@linaro.org> wrote:
>> From: Kamlakant Patel <kamlakant.patel@linaro.org>
>>
>> This patch removes *_initcall based driver initialization
>> and adds regular module_platform_driver to instantiate
>> GPIO drivers which makes the code smaller and simpler.
>>
>> NOTE: This patch needs to be tested on different platforms.
>
> I'd say this looks good - have you at least tested this on one or more
> of the modified drivers?

I asked Kamlakant to send these patches. I will apply them when/if each
platform maintainer go about to actually test it on their machine and
can confirm it works.

Yours,
Linus Walleij

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

end of thread, other threads:[~2014-09-24  8:03 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-09 10:29 [RTF] [PATCH 00/26] gpio: use platform based module init kamlakant.patel
2014-09-09 10:29 ` [RTF] [PATCH 01/26] gpio: em: " kamlakant.patel
2014-09-09 10:29 ` [RTF] [PATCH 02/26] gpio: ep93xx: " kamlakant.patel
2014-09-09 10:29 ` [RTF] [PATCH 03/26] gpio: iop: " kamlakant.patel
2014-09-09 10:29 ` [RTF] [PATCH 04/26] gpio: msm-v1: " kamlakant.patel
2014-09-09 10:29 ` [RTF] [PATCH 05/26] gpio: mxc: " kamlakant.patel
2014-09-09 10:29 ` [RTF] [PATCH 06/26] gpio: mxs: " kamlakant.patel
2014-09-09 10:29 ` [RTF] [PATCH 07/26] gpio: palmas: " kamlakant.patel
2014-09-09 10:29 ` [RTF] [PATCH 08/26] gpio: SPEAr: " kamlakant.patel
2014-09-09 10:29 ` [RTF] [PATCH 09/26] gpio: stmpe: " kamlakant.patel
2014-09-09 10:29 ` [RTF] [PATCH 10/26] gpio: tc3589x: " kamlakant.patel
2014-09-09 10:29 ` [RTF] [PATCH 11/26] gpio: tps6586x: " kamlakant.patel
2014-09-09 10:29 ` [RTF] [PATCH 12/26] gpio: tps65910: " kamlakant.patel
2014-09-09 10:29 ` [RTF] [PATCH 13/26] gpio: " kamlakant.patel
2014-09-09 10:29 ` [RTF] [PATCH 14/26] gpio: twl4030: " kamlakant.patel
2014-09-09 10:29 ` [RTF] [PATCH 15/26] gpio: wm831x: " kamlakant.patel
2014-09-09 10:29 ` [RTF] [PATCH 16/26] gpio: wm8350: " kamlakant.patel
2014-09-09 10:29 ` [RTF] [PATCH 17/26] gpio: wm8994: " kamlakant.patel
2014-09-09 10:29 ` [RTF] [PATCH 18/26] gpio: zynq: " kamlakant.patel
2014-09-09 10:29 ` [RTF] [PATCH 19/26] gpio: da9055: " kamlakant.patel
2014-09-09 10:29 ` [RTF] [PATCH 20/26] gpio: lynxpoint: " kamlakant.patel
2014-09-09 10:29 ` [RTF] [PATCH 21/26] gpio: lantiq: " kamlakant.patel
2014-09-09 10:29 ` [RTF] [PATCH 22/26] gpio: msic: " kamlakant.patel
2014-09-09 10:29 ` [RTF] [PATCH 23/26] gpio: rc5t583: " kamlakant.patel
2014-09-09 10:29 ` [RTF] [PATCH 24/26] gpio: xway: " kamlakant.patel
2014-09-09 10:29 ` [RTF] [PATCH 25/26] gpio: tz1090-pdc: " kamlakant.patel
2014-09-09 10:29 ` [RTF] [PATCH 26/26] gpio: tz1090: " kamlakant.patel
2014-09-19  8:36 ` [RTF] [PATCH 00/26] gpio: " Alexandre Courbot
2014-09-24  8:03   ` 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.