All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/06] ARM: shmobile: Remove unused auxdata tables
@ 2013-06-28 10:29 ` Magnus Damm
  0 siblings, 0 replies; 20+ messages in thread
From: Magnus Damm @ 2013-06-28 10:29 UTC (permalink / raw)
  To: linux-arm-kernel

ARM: shmobile: Remove unused auxdata tables

[PATCH 01/06] ARM: shmobile: Remove unused EMEV2 auxdata table
[PATCH 02/06] ARM: shmobile: Remove unused r8a7740 auxdata table
[PATCH 03/06] ARM: shmobile: Remove unused r8a7778 auxdata table
[PATCH 04/06] ARM: shmobile: Remove unused r8a7779 auxdata table
[PATCH 05/06] ARM: shmobile: Remove unused sh7372 auxdata table
[PATCH 06/06] ARM: shmobile: Remove unused sh73a0 auxdata table

Rework the mach-shmobile code to pass NULL to of_platform_populate()
instead of empty lists. This cleans up the code and reduces the
number of lines. The recently added SoCs r8a7790 and r8a73a4 are
already following this style, so no need to touch them.

Signed-off-by: Magnus Damm <damm@opensource.se>
---

 Written against renesas.git renesas-next-20130628

 arch/arm/mach-shmobile/setup-emev2.c   |    6 +-----
 arch/arm/mach-shmobile/setup-r8a7740.c |    7 +------
 arch/arm/mach-shmobile/setup-r8a7778.c |    7 +------
 arch/arm/mach-shmobile/setup-r8a7779.c |    7 +------
 arch/arm/mach-shmobile/setup-sh7372.c  |    7 +------
 arch/arm/mach-shmobile/setup-sh73a0.c  |    7 +------
 6 files changed, 6 insertions(+), 35 deletions(-)

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

* [PATCH 00/06] ARM: shmobile: Remove unused auxdata tables
@ 2013-06-28 10:29 ` Magnus Damm
  0 siblings, 0 replies; 20+ messages in thread
From: Magnus Damm @ 2013-06-28 10:29 UTC (permalink / raw)
  To: linux-arm-kernel

ARM: shmobile: Remove unused auxdata tables

[PATCH 01/06] ARM: shmobile: Remove unused EMEV2 auxdata table
[PATCH 02/06] ARM: shmobile: Remove unused r8a7740 auxdata table
[PATCH 03/06] ARM: shmobile: Remove unused r8a7778 auxdata table
[PATCH 04/06] ARM: shmobile: Remove unused r8a7779 auxdata table
[PATCH 05/06] ARM: shmobile: Remove unused sh7372 auxdata table
[PATCH 06/06] ARM: shmobile: Remove unused sh73a0 auxdata table

Rework the mach-shmobile code to pass NULL to of_platform_populate()
instead of empty lists. This cleans up the code and reduces the
number of lines. The recently added SoCs r8a7790 and r8a73a4 are
already following this style, so no need to touch them.

Signed-off-by: Magnus Damm <damm@opensource.se>
---

 Written against renesas.git renesas-next-20130628

 arch/arm/mach-shmobile/setup-emev2.c   |    6 +-----
 arch/arm/mach-shmobile/setup-r8a7740.c |    7 +------
 arch/arm/mach-shmobile/setup-r8a7778.c |    7 +------
 arch/arm/mach-shmobile/setup-r8a7779.c |    7 +------
 arch/arm/mach-shmobile/setup-sh7372.c  |    7 +------
 arch/arm/mach-shmobile/setup-sh73a0.c  |    7 +------
 6 files changed, 6 insertions(+), 35 deletions(-)

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

* [PATCH 01/06] ARM: shmobile: Remove unused EMEV2 auxdata table
  2013-06-28 10:29 ` Magnus Damm
@ 2013-06-28 10:29   ` Magnus Damm
  -1 siblings, 0 replies; 20+ messages in thread
From: Magnus Damm @ 2013-06-28 10:29 UTC (permalink / raw)
  To: linux-arm-kernel

From: Magnus Damm <damm@opensource.se>

Pass NULL to of_platform_populate instead of passing
an empty list. This cleans up the code and reduces the
number of lines.

Signed-off-by: Magnus Damm <damm@opensource.se>
---

 arch/arm/mach-shmobile/setup-emev2.c |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

--- 0001/arch/arm/mach-shmobile/setup-emev2.c
+++ work/arch/arm/mach-shmobile/setup-emev2.c	2013-06-28 15:46:19.000000000 +0900
@@ -435,14 +435,10 @@ void __init emev2_init_irq(void)
 }
 
 #ifdef CONFIG_USE_OF
-static const struct of_dev_auxdata emev2_auxdata_lookup[] __initconst = {
-	{ }
-};
 
 static void __init emev2_add_standard_devices_dt(void)
 {
-	of_platform_populate(NULL, of_default_bus_match_table,
-			     emev2_auxdata_lookup, NULL);
+	of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
 }
 
 static const char *emev2_boards_compat_dt[] __initdata = {

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

* [PATCH 01/06] ARM: shmobile: Remove unused EMEV2 auxdata table
@ 2013-06-28 10:29   ` Magnus Damm
  0 siblings, 0 replies; 20+ messages in thread
From: Magnus Damm @ 2013-06-28 10:29 UTC (permalink / raw)
  To: linux-arm-kernel

From: Magnus Damm <damm@opensource.se>

Pass NULL to of_platform_populate instead of passing
an empty list. This cleans up the code and reduces the
number of lines.

Signed-off-by: Magnus Damm <damm@opensource.se>
---

 arch/arm/mach-shmobile/setup-emev2.c |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

--- 0001/arch/arm/mach-shmobile/setup-emev2.c
+++ work/arch/arm/mach-shmobile/setup-emev2.c	2013-06-28 15:46:19.000000000 +0900
@@ -435,14 +435,10 @@ void __init emev2_init_irq(void)
 }
 
 #ifdef CONFIG_USE_OF
-static const struct of_dev_auxdata emev2_auxdata_lookup[] __initconst = {
-	{ }
-};
 
 static void __init emev2_add_standard_devices_dt(void)
 {
-	of_platform_populate(NULL, of_default_bus_match_table,
-			     emev2_auxdata_lookup, NULL);
+	of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
 }
 
 static const char *emev2_boards_compat_dt[] __initdata = {

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

* [PATCH 02/06] ARM: shmobile: Remove unused r8a7740 auxdata table
  2013-06-28 10:29 ` Magnus Damm
@ 2013-06-28 10:29   ` Magnus Damm
  -1 siblings, 0 replies; 20+ messages in thread
From: Magnus Damm @ 2013-06-28 10:29 UTC (permalink / raw)
  To: linux-arm-kernel

From: Magnus Damm <damm@opensource.se>

Pass NULL to of_platform_populate instead of passing
an empty list. This cleans up the code and reduces the
number of lines.

Signed-off-by: Magnus Damm <damm@opensource.se>
---

 arch/arm/mach-shmobile/setup-r8a7740.c |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

--- 0001/arch/arm/mach-shmobile/setup-r8a7740.c
+++ work/arch/arm/mach-shmobile/setup-r8a7740.c	2013-06-28 15:43:04.000000000 +0900
@@ -986,16 +986,11 @@ void __init r8a7740_add_early_devices(vo
 
 #ifdef CONFIG_USE_OF
 
-static const struct of_dev_auxdata r8a7740_auxdata_lookup[] __initconst = {
-	{ }
-};
-
 void __init r8a7740_add_standard_devices_dt(void)
 {
 	platform_add_devices(r8a7740_devices_dt,
 			    ARRAY_SIZE(r8a7740_devices_dt));
-	of_platform_populate(NULL, of_default_bus_match_table,
-			     r8a7740_auxdata_lookup, NULL);
+	of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
 }
 
 void __init r8a7740_init_delay(void)

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

* [PATCH 02/06] ARM: shmobile: Remove unused r8a7740 auxdata table
@ 2013-06-28 10:29   ` Magnus Damm
  0 siblings, 0 replies; 20+ messages in thread
From: Magnus Damm @ 2013-06-28 10:29 UTC (permalink / raw)
  To: linux-arm-kernel

From: Magnus Damm <damm@opensource.se>

Pass NULL to of_platform_populate instead of passing
an empty list. This cleans up the code and reduces the
number of lines.

Signed-off-by: Magnus Damm <damm@opensource.se>
---

 arch/arm/mach-shmobile/setup-r8a7740.c |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

--- 0001/arch/arm/mach-shmobile/setup-r8a7740.c
+++ work/arch/arm/mach-shmobile/setup-r8a7740.c	2013-06-28 15:43:04.000000000 +0900
@@ -986,16 +986,11 @@ void __init r8a7740_add_early_devices(vo
 
 #ifdef CONFIG_USE_OF
 
-static const struct of_dev_auxdata r8a7740_auxdata_lookup[] __initconst = {
-	{ }
-};
-
 void __init r8a7740_add_standard_devices_dt(void)
 {
 	platform_add_devices(r8a7740_devices_dt,
 			    ARRAY_SIZE(r8a7740_devices_dt));
-	of_platform_populate(NULL, of_default_bus_match_table,
-			     r8a7740_auxdata_lookup, NULL);
+	of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
 }
 
 void __init r8a7740_init_delay(void)

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

* [PATCH 03/06] ARM: shmobile: Remove unused r8a7778 auxdata table
  2013-06-28 10:29 ` Magnus Damm
@ 2013-06-28 10:29   ` Magnus Damm
  -1 siblings, 0 replies; 20+ messages in thread
From: Magnus Damm @ 2013-06-28 10:29 UTC (permalink / raw)
  To: linux-arm-kernel

From: Magnus Damm <damm@opensource.se>

Pass NULL to of_platform_populate instead of passing
an empty list. This cleans up the code and reduces the
number of lines.

Signed-off-by: Magnus Damm <damm@opensource.se>
---

 arch/arm/mach-shmobile/setup-r8a7778.c |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

--- 0001/arch/arm/mach-shmobile/setup-r8a7778.c
+++ work/arch/arm/mach-shmobile/setup-r8a7778.c	2013-06-28 15:48:43.000000000 +0900
@@ -457,14 +457,9 @@ void __init r8a7778_init_irq_dt(void)
 	r8a7778_init_irq_common();
 }
 
-static const struct of_dev_auxdata r8a7778_auxdata_lookup[] __initconst = {
-	{},
-};
-
 void __init r8a7778_add_standard_devices_dt(void)
 {
-	of_platform_populate(NULL, of_default_bus_match_table,
-			     r8a7778_auxdata_lookup, NULL);
+	of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
 }
 
 static const char *r8a7778_compat_dt[] __initdata = {

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

* [PATCH 03/06] ARM: shmobile: Remove unused r8a7778 auxdata table
@ 2013-06-28 10:29   ` Magnus Damm
  0 siblings, 0 replies; 20+ messages in thread
From: Magnus Damm @ 2013-06-28 10:29 UTC (permalink / raw)
  To: linux-arm-kernel

From: Magnus Damm <damm@opensource.se>

Pass NULL to of_platform_populate instead of passing
an empty list. This cleans up the code and reduces the
number of lines.

Signed-off-by: Magnus Damm <damm@opensource.se>
---

 arch/arm/mach-shmobile/setup-r8a7778.c |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

--- 0001/arch/arm/mach-shmobile/setup-r8a7778.c
+++ work/arch/arm/mach-shmobile/setup-r8a7778.c	2013-06-28 15:48:43.000000000 +0900
@@ -457,14 +457,9 @@ void __init r8a7778_init_irq_dt(void)
 	r8a7778_init_irq_common();
 }
 
-static const struct of_dev_auxdata r8a7778_auxdata_lookup[] __initconst = {
-	{},
-};
-
 void __init r8a7778_add_standard_devices_dt(void)
 {
-	of_platform_populate(NULL, of_default_bus_match_table,
-			     r8a7778_auxdata_lookup, NULL);
+	of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
 }
 
 static const char *r8a7778_compat_dt[] __initdata = {

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

* [PATCH 04/06] ARM: shmobile: Remove unused r8a7779 auxdata table
  2013-06-28 10:29 ` Magnus Damm
@ 2013-06-28 10:30   ` Magnus Damm
  -1 siblings, 0 replies; 20+ messages in thread
From: Magnus Damm @ 2013-06-28 10:30 UTC (permalink / raw)
  To: linux-arm-kernel

From: Magnus Damm <damm@opensource.se>

Pass NULL to of_platform_populate instead of passing
an empty list. This cleans up the code and reduces the
number of lines.

Signed-off-by: Magnus Damm <damm@opensource.se>
---

 arch/arm/mach-shmobile/setup-r8a7779.c |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

--- 0001/arch/arm/mach-shmobile/setup-r8a7779.c
+++ work/arch/arm/mach-shmobile/setup-r8a7779.c	2013-06-28 15:49:50.000000000 +0900
@@ -665,10 +665,6 @@ void __init r8a7779_init_delay(void)
 	shmobile_setup_delay(1000, 2, 4); /* Cortex-A9 @ 1000MHz */
 }
 
-static const struct of_dev_auxdata r8a7779_auxdata_lookup[] __initconst = {
-	{},
-};
-
 void __init r8a7779_add_standard_devices_dt(void)
 {
 	/* clocks are setup late during boot in the case of DT */
@@ -676,8 +672,7 @@ void __init r8a7779_add_standard_devices
 
 	platform_add_devices(r8a7779_devices_dt,
 			     ARRAY_SIZE(r8a7779_devices_dt));
-	of_platform_populate(NULL, of_default_bus_match_table,
-			     r8a7779_auxdata_lookup, NULL);
+	of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
 }
 
 static const char *r8a7779_compat_dt[] __initdata = {

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

* [PATCH 04/06] ARM: shmobile: Remove unused r8a7779 auxdata table
@ 2013-06-28 10:30   ` Magnus Damm
  0 siblings, 0 replies; 20+ messages in thread
From: Magnus Damm @ 2013-06-28 10:30 UTC (permalink / raw)
  To: linux-arm-kernel

From: Magnus Damm <damm@opensource.se>

Pass NULL to of_platform_populate instead of passing
an empty list. This cleans up the code and reduces the
number of lines.

Signed-off-by: Magnus Damm <damm@opensource.se>
---

 arch/arm/mach-shmobile/setup-r8a7779.c |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

--- 0001/arch/arm/mach-shmobile/setup-r8a7779.c
+++ work/arch/arm/mach-shmobile/setup-r8a7779.c	2013-06-28 15:49:50.000000000 +0900
@@ -665,10 +665,6 @@ void __init r8a7779_init_delay(void)
 	shmobile_setup_delay(1000, 2, 4); /* Cortex-A9 @ 1000MHz */
 }
 
-static const struct of_dev_auxdata r8a7779_auxdata_lookup[] __initconst = {
-	{},
-};
-
 void __init r8a7779_add_standard_devices_dt(void)
 {
 	/* clocks are setup late during boot in the case of DT */
@@ -676,8 +672,7 @@ void __init r8a7779_add_standard_devices
 
 	platform_add_devices(r8a7779_devices_dt,
 			     ARRAY_SIZE(r8a7779_devices_dt));
-	of_platform_populate(NULL, of_default_bus_match_table,
-			     r8a7779_auxdata_lookup, NULL);
+	of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
 }
 
 static const char *r8a7779_compat_dt[] __initdata = {

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

* [PATCH 05/06] ARM: shmobile: Remove unused sh7372 auxdata table
  2013-06-28 10:29 ` Magnus Damm
@ 2013-06-28 10:30   ` Magnus Damm
  -1 siblings, 0 replies; 20+ messages in thread
From: Magnus Damm @ 2013-06-28 10:30 UTC (permalink / raw)
  To: linux-arm-kernel

From: Magnus Damm <damm@opensource.se>

Pass NULL to of_platform_populate instead of passing
an empty list. This cleans up the code and reduces the
number of lines.

Signed-off-by: Magnus Damm <damm@opensource.se>
---

 arch/arm/mach-shmobile/setup-sh7372.c |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

--- 0001/arch/arm/mach-shmobile/setup-sh7372.c
+++ work/arch/arm/mach-shmobile/setup-sh7372.c	2013-06-28 15:41:15.000000000 +0900
@@ -1147,10 +1147,6 @@ void __init sh7372_add_early_devices_dt(
 	shmobile_setup_console();
 }
 
-static const struct of_dev_auxdata sh7372_auxdata_lookup[] __initconst = {
-	{ }
-};
-
 void __init sh7372_add_standard_devices_dt(void)
 {
 	/* clocks are setup late during boot in the case of DT */
@@ -1159,8 +1155,7 @@ void __init sh7372_add_standard_devices_
 	platform_add_devices(sh7372_early_devices,
 			    ARRAY_SIZE(sh7372_early_devices));
 
-	of_platform_populate(NULL, of_default_bus_match_table,
-			     sh7372_auxdata_lookup, NULL);
+	of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
 }
 
 static const char *sh7372_boards_compat_dt[] __initdata = {

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

* [PATCH 05/06] ARM: shmobile: Remove unused sh7372 auxdata table
@ 2013-06-28 10:30   ` Magnus Damm
  0 siblings, 0 replies; 20+ messages in thread
From: Magnus Damm @ 2013-06-28 10:30 UTC (permalink / raw)
  To: linux-arm-kernel

From: Magnus Damm <damm@opensource.se>

Pass NULL to of_platform_populate instead of passing
an empty list. This cleans up the code and reduces the
number of lines.

Signed-off-by: Magnus Damm <damm@opensource.se>
---

 arch/arm/mach-shmobile/setup-sh7372.c |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

--- 0001/arch/arm/mach-shmobile/setup-sh7372.c
+++ work/arch/arm/mach-shmobile/setup-sh7372.c	2013-06-28 15:41:15.000000000 +0900
@@ -1147,10 +1147,6 @@ void __init sh7372_add_early_devices_dt(
 	shmobile_setup_console();
 }
 
-static const struct of_dev_auxdata sh7372_auxdata_lookup[] __initconst = {
-	{ }
-};
-
 void __init sh7372_add_standard_devices_dt(void)
 {
 	/* clocks are setup late during boot in the case of DT */
@@ -1159,8 +1155,7 @@ void __init sh7372_add_standard_devices_
 	platform_add_devices(sh7372_early_devices,
 			    ARRAY_SIZE(sh7372_early_devices));
 
-	of_platform_populate(NULL, of_default_bus_match_table,
-			     sh7372_auxdata_lookup, NULL);
+	of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
 }
 
 static const char *sh7372_boards_compat_dt[] __initdata = {

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

* [PATCH 06/06] ARM: shmobile: Remove unused sh73a0 auxdata table
  2013-06-28 10:29 ` Magnus Damm
@ 2013-06-28 10:30   ` Magnus Damm
  -1 siblings, 0 replies; 20+ messages in thread
From: Magnus Damm @ 2013-06-28 10:30 UTC (permalink / raw)
  To: linux-arm-kernel

From: Magnus Damm <damm@opensource.se>

Pass NULL to of_platform_populate instead of passing
an empty list. This cleans up the code and reduces the
number of lines.

Signed-off-by: Magnus Damm <damm@opensource.se>
---

 arch/arm/mach-shmobile/setup-sh73a0.c |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

--- 0001/arch/arm/mach-shmobile/setup-sh73a0.c
+++ work/arch/arm/mach-shmobile/setup-sh73a0.c	2013-06-28 19:16:07.000000000 +0900
@@ -958,10 +958,6 @@ void __init sh73a0_add_early_devices(voi
 
 #ifdef CONFIG_USE_OF
 
-static const struct of_dev_auxdata sh73a0_auxdata_lookup[] __initconst = {
-	{},
-};
-
 void __init sh73a0_add_standard_devices_dt(void)
 {
 	struct platform_device_info devinfo = { .name = "cpufreq-cpu0", .id = -1, };
@@ -971,8 +967,7 @@ void __init sh73a0_add_standard_devices_
 
 	platform_add_devices(sh73a0_devices_dt,
 			     ARRAY_SIZE(sh73a0_devices_dt));
-	of_platform_populate(NULL, of_default_bus_match_table,
-			     sh73a0_auxdata_lookup, NULL);
+	of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
 
 	/* Instantiate cpufreq-cpu0 */
 	platform_device_register_full(&devinfo);

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

* [PATCH 06/06] ARM: shmobile: Remove unused sh73a0 auxdata table
@ 2013-06-28 10:30   ` Magnus Damm
  0 siblings, 0 replies; 20+ messages in thread
From: Magnus Damm @ 2013-06-28 10:30 UTC (permalink / raw)
  To: linux-arm-kernel

From: Magnus Damm <damm@opensource.se>

Pass NULL to of_platform_populate instead of passing
an empty list. This cleans up the code and reduces the
number of lines.

Signed-off-by: Magnus Damm <damm@opensource.se>
---

 arch/arm/mach-shmobile/setup-sh73a0.c |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

--- 0001/arch/arm/mach-shmobile/setup-sh73a0.c
+++ work/arch/arm/mach-shmobile/setup-sh73a0.c	2013-06-28 19:16:07.000000000 +0900
@@ -958,10 +958,6 @@ void __init sh73a0_add_early_devices(voi
 
 #ifdef CONFIG_USE_OF
 
-static const struct of_dev_auxdata sh73a0_auxdata_lookup[] __initconst = {
-	{},
-};
-
 void __init sh73a0_add_standard_devices_dt(void)
 {
 	struct platform_device_info devinfo = { .name = "cpufreq-cpu0", .id = -1, };
@@ -971,8 +967,7 @@ void __init sh73a0_add_standard_devices_
 
 	platform_add_devices(sh73a0_devices_dt,
 			     ARRAY_SIZE(sh73a0_devices_dt));
-	of_platform_populate(NULL, of_default_bus_match_table,
-			     sh73a0_auxdata_lookup, NULL);
+	of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
 
 	/* Instantiate cpufreq-cpu0 */
 	platform_device_register_full(&devinfo);

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

* Re: [PATCH 03/06] ARM: shmobile: Remove unused r8a7778 auxdata table
  2013-06-28 10:29   ` Magnus Damm
@ 2013-06-28 11:50     ` Arnd Bergmann
  -1 siblings, 0 replies; 20+ messages in thread
From: Arnd Bergmann @ 2013-06-28 11:50 UTC (permalink / raw)
  To: linux-arm-kernel

On Friday 28 June 2013, Magnus Damm wrote:
> ach-shmobile/setup-r8a7778.c
> +++ work/arch/arm/mach-shmobile/setup-r8a7778.c 2013-06-28 15:48:43.000000000 +0900
> @@ -457,14 +457,9 @@ void __init r8a7778_init_irq_dt(void)
>         r8a7778_init_irq_common();
>  }
>  
> -static const struct of_dev_auxdata r8a7778_auxdata_lookup[] __initconst = {
> -       {},
> -};
> -
>  void __init r8a7778_add_standard_devices_dt(void)
>  {
> -       of_platform_populate(NULL, of_default_bus_match_table,
> -                            r8a7778_auxdata_lookup, NULL);
> +       of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
>  }
>  
>  static const char *r8a7778_compat_dt[] __initdata = {

Since this is now the trivial form of the function, you can
drop r8a7778_add_standard_devices_dt entirely and have a NULL
init_machine pointer. Same for the first two patches.

	Arnd

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

* [PATCH 03/06] ARM: shmobile: Remove unused r8a7778 auxdata table
@ 2013-06-28 11:50     ` Arnd Bergmann
  0 siblings, 0 replies; 20+ messages in thread
From: Arnd Bergmann @ 2013-06-28 11:50 UTC (permalink / raw)
  To: linux-arm-kernel

On Friday 28 June 2013, Magnus Damm wrote:
> ach-shmobile/setup-r8a7778.c
> +++ work/arch/arm/mach-shmobile/setup-r8a7778.c 2013-06-28 15:48:43.000000000 +0900
> @@ -457,14 +457,9 @@ void __init r8a7778_init_irq_dt(void)
>         r8a7778_init_irq_common();
>  }
>  
> -static const struct of_dev_auxdata r8a7778_auxdata_lookup[] __initconst = {
> -       {},
> -};
> -
>  void __init r8a7778_add_standard_devices_dt(void)
>  {
> -       of_platform_populate(NULL, of_default_bus_match_table,
> -                            r8a7778_auxdata_lookup, NULL);
> +       of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
>  }
>  
>  static const char *r8a7778_compat_dt[] __initdata = {

Since this is now the trivial form of the function, you can
drop r8a7778_add_standard_devices_dt entirely and have a NULL
init_machine pointer. Same for the first two patches.

	Arnd

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

* Re: [PATCH 00/06] ARM: shmobile: Remove unused auxdata tables
  2013-06-28 10:29 ` Magnus Damm
@ 2013-06-28 13:26   ` Sergei Shtylyov
  -1 siblings, 0 replies; 20+ messages in thread
From: Sergei Shtylyov @ 2013-06-28 13:26 UTC (permalink / raw)
  To: linux-arm-kernel

Hello.

On 28-06-2013 14:29, Magnus Damm wrote:

> ARM: shmobile: Remove unused auxdata tables

> [PATCH 01/06] ARM: shmobile: Remove unused EMEV2 auxdata table
> [PATCH 02/06] ARM: shmobile: Remove unused r8a7740 auxdata table
> [PATCH 03/06] ARM: shmobile: Remove unused r8a7778 auxdata table
> [PATCH 04/06] ARM: shmobile: Remove unused r8a7779 auxdata table
> [PATCH 05/06] ARM: shmobile: Remove unused sh7372 auxdata table
> [PATCH 06/06] ARM: shmobile: Remove unused sh73a0 auxdata table

> Rework the mach-shmobile code to pass NULL to of_platform_populate()
> instead of empty lists. This cleans up the code and reduces the
> number of lines. The recently added SoCs r8a7790 and r8a73a4 are
> already following this style, so no need to touch them.

    Right, these tables will actually be needed in the board code 
instead, e.g. for Ether. Although, for the USB devices we might still 
need them where they are, once these devices are described in DT.
Dilemma... I suspect we might be too hasty with this patch.

WBR, Sergei


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

* [PATCH 00/06] ARM: shmobile: Remove unused auxdata tables
@ 2013-06-28 13:26   ` Sergei Shtylyov
  0 siblings, 0 replies; 20+ messages in thread
From: Sergei Shtylyov @ 2013-06-28 13:26 UTC (permalink / raw)
  To: linux-arm-kernel

Hello.

On 28-06-2013 14:29, Magnus Damm wrote:

> ARM: shmobile: Remove unused auxdata tables

> [PATCH 01/06] ARM: shmobile: Remove unused EMEV2 auxdata table
> [PATCH 02/06] ARM: shmobile: Remove unused r8a7740 auxdata table
> [PATCH 03/06] ARM: shmobile: Remove unused r8a7778 auxdata table
> [PATCH 04/06] ARM: shmobile: Remove unused r8a7779 auxdata table
> [PATCH 05/06] ARM: shmobile: Remove unused sh7372 auxdata table
> [PATCH 06/06] ARM: shmobile: Remove unused sh73a0 auxdata table

> Rework the mach-shmobile code to pass NULL to of_platform_populate()
> instead of empty lists. This cleans up the code and reduces the
> number of lines. The recently added SoCs r8a7790 and r8a73a4 are
> already following this style, so no need to touch them.

    Right, these tables will actually be needed in the board code 
instead, e.g. for Ether. Although, for the USB devices we might still 
need them where they are, once these devices are described in DT.
Dilemma... I suspect we might be too hasty with this patch.

WBR, Sergei

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

* Re: [PATCH 03/06] ARM: shmobile: Remove unused r8a7778 auxdata table
  2013-06-28 11:50     ` Arnd Bergmann
@ 2013-07-01  3:38       ` Magnus Damm
  -1 siblings, 0 replies; 20+ messages in thread
From: Magnus Damm @ 2013-07-01  3:38 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Arnd,

On Fri, Jun 28, 2013 at 8:50 PM, Arnd Bergmann <arnd@arndb.de> wrote:
> On Friday 28 June 2013, Magnus Damm wrote:
>> ach-shmobile/setup-r8a7778.c
>> +++ work/arch/arm/mach-shmobile/setup-r8a7778.c 2013-06-28 15:48:43.000000000 +0900
>> @@ -457,14 +457,9 @@ void __init r8a7778_init_irq_dt(void)
>>         r8a7778_init_irq_common();
>>  }
>>
>> -static const struct of_dev_auxdata r8a7778_auxdata_lookup[] __initconst = {
>> -       {},
>> -};
>> -
>>  void __init r8a7778_add_standard_devices_dt(void)
>>  {
>> -       of_platform_populate(NULL, of_default_bus_match_table,
>> -                            r8a7778_auxdata_lookup, NULL);
>> +       of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
>>  }
>>
>>  static const char *r8a7778_compat_dt[] __initdata = {
>
> Since this is now the trivial form of the function, you can
> drop r8a7778_add_standard_devices_dt entirely and have a NULL
> init_machine pointer. Same for the first two patches.

Thanks, I will rework the patches for the SoCs where NULL is possible
and resend the series.

Cheers,

/ magnus

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

* [PATCH 03/06] ARM: shmobile: Remove unused r8a7778 auxdata table
@ 2013-07-01  3:38       ` Magnus Damm
  0 siblings, 0 replies; 20+ messages in thread
From: Magnus Damm @ 2013-07-01  3:38 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Arnd,

On Fri, Jun 28, 2013 at 8:50 PM, Arnd Bergmann <arnd@arndb.de> wrote:
> On Friday 28 June 2013, Magnus Damm wrote:
>> ach-shmobile/setup-r8a7778.c
>> +++ work/arch/arm/mach-shmobile/setup-r8a7778.c 2013-06-28 15:48:43.000000000 +0900
>> @@ -457,14 +457,9 @@ void __init r8a7778_init_irq_dt(void)
>>         r8a7778_init_irq_common();
>>  }
>>
>> -static const struct of_dev_auxdata r8a7778_auxdata_lookup[] __initconst = {
>> -       {},
>> -};
>> -
>>  void __init r8a7778_add_standard_devices_dt(void)
>>  {
>> -       of_platform_populate(NULL, of_default_bus_match_table,
>> -                            r8a7778_auxdata_lookup, NULL);
>> +       of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
>>  }
>>
>>  static const char *r8a7778_compat_dt[] __initdata = {
>
> Since this is now the trivial form of the function, you can
> drop r8a7778_add_standard_devices_dt entirely and have a NULL
> init_machine pointer. Same for the first two patches.

Thanks, I will rework the patches for the SoCs where NULL is possible
and resend the series.

Cheers,

/ magnus

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

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

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-28 10:29 [PATCH 00/06] ARM: shmobile: Remove unused auxdata tables Magnus Damm
2013-06-28 10:29 ` Magnus Damm
2013-06-28 10:29 ` [PATCH 01/06] ARM: shmobile: Remove unused EMEV2 auxdata table Magnus Damm
2013-06-28 10:29   ` Magnus Damm
2013-06-28 10:29 ` [PATCH 02/06] ARM: shmobile: Remove unused r8a7740 " Magnus Damm
2013-06-28 10:29   ` Magnus Damm
2013-06-28 10:29 ` [PATCH 03/06] ARM: shmobile: Remove unused r8a7778 " Magnus Damm
2013-06-28 10:29   ` Magnus Damm
2013-06-28 11:50   ` Arnd Bergmann
2013-06-28 11:50     ` Arnd Bergmann
2013-07-01  3:38     ` Magnus Damm
2013-07-01  3:38       ` Magnus Damm
2013-06-28 10:30 ` [PATCH 04/06] ARM: shmobile: Remove unused r8a7779 " Magnus Damm
2013-06-28 10:30   ` Magnus Damm
2013-06-28 10:30 ` [PATCH 05/06] ARM: shmobile: Remove unused sh7372 " Magnus Damm
2013-06-28 10:30   ` Magnus Damm
2013-06-28 10:30 ` [PATCH 06/06] ARM: shmobile: Remove unused sh73a0 " Magnus Damm
2013-06-28 10:30   ` Magnus Damm
2013-06-28 13:26 ` [PATCH 00/06] ARM: shmobile: Remove unused auxdata tables Sergei Shtylyov
2013-06-28 13:26   ` Sergei Shtylyov

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.