linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 17/17 v2] ARM: shmobile: r8a7778: rename sdhi device additional function
@ 2013-05-23  3:24 Kuninori Morimoto
  2013-05-23 13:09 ` Sergei Shtylyov
  0 siblings, 1 reply; 2+ messages in thread
From: Kuninori Morimoto @ 2013-05-23  3:24 UTC (permalink / raw)
  To: linux-sh

Other device additional function are r8a7778_add_xxx_device()
sdhi also follow it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
v1 -> v2

 - r8a7778_sdhi_init() was out of naming rule

 arch/arm/mach-shmobile/board-bockw.c          |    2 +-
 arch/arm/mach-shmobile/include/mach/r8a7778.h |    2 +-
 arch/arm/mach-shmobile/setup-r8a7778.c        |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/arm/mach-shmobile/board-bockw.c b/arch/arm/mach-shmobile/board-bockw.c
index 2f51e8b..b8e8d9f 100644
--- a/arch/arm/mach-shmobile/board-bockw.c
+++ b/arch/arm/mach-shmobile/board-bockw.c
@@ -211,7 +211,7 @@ static void __init bockw_init(void)
 		iowrite32(ioread32(base + PUPR4) | (3 << 26), base + PUPR4);
 		iounmap(base);
 
-		r8a7778_sdhi_init(0, &sdhi0_info);
+		r8a7778_add_sdhi_device(0, &sdhi0_info);
 	}
 }
 
diff --git a/arch/arm/mach-shmobile/include/mach/r8a7778.h b/arch/arm/mach-shmobile/include/mach/r8a7778.h
index fcf3c90..3fcbb771 100644
--- a/arch/arm/mach-shmobile/include/mach/r8a7778.h
+++ b/arch/arm/mach-shmobile/include/mach/r8a7778.h
@@ -28,6 +28,7 @@ extern void r8a7778_add_ether_device(struct sh_eth_plat_data *pdata);
 extern void r8a7778_add_i2c_device(int id);
 extern void r8a7778_add_hspi_device(int id);
 extern void r8a7778_add_mmc_device(struct sh_mmcif_plat_data *info);
+extern void r8a7778_add_sdhi_device(int id, struct sh_mobile_sdhi_info *info);
 
 extern void r8a7778_init_delay(void);
 extern void r8a7778_init_irq(void);
@@ -35,6 +36,5 @@ extern void r8a7778_init_irq_dt(void);
 extern void r8a7778_clock_init(void);
 extern void r8a7778_init_irq_extpin(int irlm);
 extern void r8a7778_pinmux_init(void);
-extern void r8a7778_sdhi_init(int id, struct sh_mobile_sdhi_info *info);
 
 #endif /* __ASM_R8A7778_H__ */
diff --git a/arch/arm/mach-shmobile/setup-r8a7778.c b/arch/arm/mach-shmobile/setup-r8a7778.c
index 3e128c3..749d886 100644
--- a/arch/arm/mach-shmobile/setup-r8a7778.c
+++ b/arch/arm/mach-shmobile/setup-r8a7778.c
@@ -162,7 +162,7 @@ static struct resource sdhi_resources[] __initdata = {
 	DEFINE_RES_IRQ(gic_iid(0x76)),
 };
 
-void __init r8a7778_sdhi_init(int id,
+void __init r8a7778_add_sdhi_device(int id,
 			      struct sh_mobile_sdhi_info *info)
 {
 	BUG_ON(id < 0 || id > 2);
-- 
1.7.9.5


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

* Re: [PATCH 17/17 v2] ARM: shmobile: r8a7778: rename sdhi device additional function
  2013-05-23  3:24 [PATCH 17/17 v2] ARM: shmobile: r8a7778: rename sdhi device additional function Kuninori Morimoto
@ 2013-05-23 13:09 ` Sergei Shtylyov
  0 siblings, 0 replies; 2+ messages in thread
From: Sergei Shtylyov @ 2013-05-23 13:09 UTC (permalink / raw)
  To: linux-sh

On 23-05-2013 7:24, Kuninori Morimoto wrote:

> Other device additional function are r8a7778_add_xxx_device()
> sdhi also follow it.

> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

    Thanks for the patch. I didn't find time to do it.

> diff --git a/arch/arm/mach-shmobile/setup-r8a7778.c b/arch/arm/mach-shmobile/setup-r8a7778.c
> index 3e128c3..749d886 100644
> --- a/arch/arm/mach-shmobile/setup-r8a7778.c
> +++ b/arch/arm/mach-shmobile/setup-r8a7778.c
> @@ -162,7 +162,7 @@ static struct resource sdhi_resources[] __initdata = {
>   	DEFINE_RES_IRQ(gic_iid(0x76)),
>   };
>
> -void __init r8a7778_sdhi_init(int id,
> +void __init r8a7778_add_sdhi_device(int id,
>   			      struct sh_mobile_sdhi_info *info)

    You should have realigned the second line below *int* on the first.

WBR, Sergei


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

end of thread, other threads:[~2013-05-23 13:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-23  3:24 [PATCH 17/17 v2] ARM: shmobile: r8a7778: rename sdhi device additional function Kuninori Morimoto
2013-05-23 13:09 ` Sergei Shtylyov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).