Renesas ARM based sh7372 SoC updates for v3.11
Hi Arnd, Hi Olof,
The following changes since commit c7788792a5e7b0d5d7f96d0766b4cb6112d47d75:
Linux 3.10-rc2 (2013-05-20 14:37:38 -0700)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-soc-sh7372-for-v3.11
for you to fetch changes up to 98a443fd3cb4460dd9bec09b3e1d602bc9efa93c:
ARM: shmobile: sh7372 pinmux platform device cleanup (2013-05-27 18:18:22 +0900)
----------------------------------------------------------------
Renesas ARM based sh7372 SoC updates for v3.11
* Clean-up from Magnus Damm to use DEFINE_RES_MEM() to slightly reduce code size
----------------------------------------------------------------
Magnus Damm (1):
ARM: shmobile: sh7372 pinmux platform device cleanup
arch/arm/mach-shmobile/setup-sh7372.c | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-)
PATCH 1/1 ARM: shmobile: sh7372 pinmux platform device cleanup
From: Magnus Damm <[email protected]>
Use DEFINE_RES_MEM() and platform_device_register_simple() to save a couple of lines of code.
--- arch/arm/mach-shmobile/setup-sh7372.c | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-)
arch/arm/mach-shmobile/setup-sh7372.c +5 -19
@@ -62,29 +62,15 @@ void __init sh7372_map_io(void) }/* PFC */ -static struct resource sh7372_pfc_resources[] = { - [0 ] = { - .start =0xe6050000 , - .end =0xe6057fff , - .flags =IORESOURCE_MEM , - }, - [1 ] = { - .start =0xe605800c , - .end =0xe6058027 , - .flags =IORESOURCE_MEM , - } -}; - -static struct platform_device sh7372_pfc_device = { - .name ="pfc-sh7372" , - .id =-1 , - .resource = sh7372_pfc_resources, - .num_resources =ARRAY_SIZE (sh7372_pfc_resources), +static const struct resource pfc_resources[] = { +DEFINE_RES_MEM (0xe6050000 ,0x8000 ), +DEFINE_RES_MEM (0xe605800c ,0x001c ), };void __init sh7372_pinmux_init (void ) { -platform_device_register (&sh7372_pfc_device); +platform_device_register_simple ("pfc-sh7372" ,-1 , pfc_resources, +ARRAY_SIZE (pfc_resources)); }/* SCIFA0 */
Signature · 1 line
1.7.10.4
PATCH 1/1 ARM: shmobile: sh7372 pinmux platform device cleanup
Hello.
Quoted 17 lines · Simon Horman
From: Magnus Damm <[email protected]>
Use
DEFINE_RES_MEM()andplatform_device_register_simple()to save a couple of lines of code.Signed-off-by Magnus Damm <[email protected]>Acked-by Laurent Pinchart <[email protected]>Signed-off-by Simon Horman <[email protected]>--- arch/arm/mach-shmobile/setup-sh7372.c | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-)arch/arm/mach-shmobile/setup-sh7372.c +0
-0@@ -62,29 +62,15 @@ void __init sh7372_map_io(void)
[...]
Quoted 1 line
+static const struct resource pfc_resources[] = {
This should have been annotated with __initdata... too late now,
need another patch.
arch/arm/mach-shmobile/setup-sh7372.c void __init sh7372_map_io(void) · line 74
Quoted 10 lines
arch/arm/mach-shmobile/setup-sh7372.c +4
-1+DEFINE_RES_MEM (0xe6050000 ,0x8000 ), + DEFINE_RES_MEM(0xe605800c, 0x001c), };void __init sh7372_pinmux_init (void ) { -platform_device_register (&sh7372_pfc_device); +platform_device_register_simple ("pfc-sh7372" ,-1 , pfc_resources, +ARRAY_SIZE (pfc_resources)); }
WBR, Sergei