Skip to contentSkip to conversation

ARM: shmobile: Add r8a7790_register_pfc() function

PATCH New Magnus Damm 2 participants 2 messages Oct 16, 2013 – Oct 17, 2013

Subsystems (4)
lore
Share & tools
lore

Magnus Damm

author maintainer
#0 lore raw

PATCH 1/1 ARM: shmobile: Add r8a7790_register_pfc() function

From: Magnus Damm <[email protected]>

Break out the r8a7790 PFC platform device creation code to increase readability and follow same style as r8a7791.

---

Written against renesas-devel-20131016

 arch/arm/mach-shmobile/setup-r8a7790.c |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
arch/arm/mach-shmobile/setup-r8a7790.c +5 -2
@@ -34,6 +34,10 @@ static const struct resource pfc_resourc
 	DEFINE_RES_MEM(0xe6060000, 0x250),
 };
 
+#define r8a7790_register_pfc()						\
+	platform_device_register_simple("pfc-r8a7790", -1, pfc_resources, \
+					ARRAY_SIZE(pfc_resources))
+
 #define R8A7790_GPIO(idx)						\
 static const struct resource r8a7790_gpio##idx##_resources[] __initconst = { \
 	DEFINE_RES_MEM(0xe6050000 + 0x1000 * (idx), 0x50),		\
@@ -65,8 +69,7 @@ R8A7790_GPIO(5);
 
 void __init r8a7790_pinmux_init(void)
 {
-	platform_device_register_simple("pfc-r8a7790", -1, pfc_resources,
-					ARRAY_SIZE(pfc_resources));
+	r8a7790_register_pfc();
 	r8a7790_register_gpio(0);
 	r8a7790_register_gpio(1);
 	r8a7790_register_gpio(2);
#1 lore raw

PATCH 1/1 ARM: shmobile: Add r8a7790_register_pfc() function

Quoted 6 lines · Magnus Damm

From: Magnus Damm <[email protected]>

Break out the r8a7790 PFC platform device creation code to increase readability and follow same style as r8a7791.

Thanks, I have queued this up.