diff options
author | Magnus Damm <damm@opensource.se> | 2013-04-12 08:21:29 -0400 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2013-06-05 04:17:13 -0400 |
commit | 0ccaf5bb3fb6ad8d1fe3464cf269a3225c853c46 (patch) | |
tree | d80b8404b31810dc8897a02c02dd46d01e72ba97 /arch | |
parent | 3654520cfe98815296f9871da35297445bb8c515 (diff) |
ARM: shmobile: r8a7779 pinmux platform device cleanup
Use DEFINE_RES_MEM() to save a couple of lines of code.
Signed-off-by: Magnus Damm <damm@opensource.se>
[lp: Don't declare r8a7779_pfc_resources as const]
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-shmobile/setup-r8a7779.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/arch/arm/mach-shmobile/setup-r8a7779.c b/arch/arm/mach-shmobile/setup-r8a7779.c index b0b394842ea5..dbb13f289e79 100644 --- a/arch/arm/mach-shmobile/setup-r8a7779.c +++ b/arch/arm/mach-shmobile/setup-r8a7779.c | |||
@@ -65,11 +65,7 @@ void __init r8a7779_map_io(void) | |||
65 | } | 65 | } |
66 | 66 | ||
67 | static struct resource r8a7779_pfc_resources[] = { | 67 | static struct resource r8a7779_pfc_resources[] = { |
68 | [0] = { | 68 | DEFINE_RES_MEM(0xfffc0000, 0x023c), |
69 | .start = 0xfffc0000, | ||
70 | .end = 0xfffc023b, | ||
71 | .flags = IORESOURCE_MEM, | ||
72 | }, | ||
73 | }; | 69 | }; |
74 | 70 | ||
75 | static struct platform_device r8a7779_pfc_device = { | 71 | static struct platform_device r8a7779_pfc_device = { |
@@ -81,15 +77,8 @@ static struct platform_device r8a7779_pfc_device = { | |||
81 | 77 | ||
82 | #define R8A7779_GPIO(idx, npins) \ | 78 | #define R8A7779_GPIO(idx, npins) \ |
83 | static struct resource r8a7779_gpio##idx##_resources[] = { \ | 79 | static struct resource r8a7779_gpio##idx##_resources[] = { \ |
84 | [0] = { \ | 80 | DEFINE_RES_MEM(0xffc40000 + (0x1000 * (idx)), 0x002c), \ |
85 | .start = 0xffc40000 + 0x1000 * (idx), \ | 81 | DEFINE_RES_IRQ(gic_iid(0xad + (idx))), \ |
86 | .end = 0xffc4002b + 0x1000 * (idx), \ | ||
87 | .flags = IORESOURCE_MEM, \ | ||
88 | }, \ | ||
89 | [1] = { \ | ||
90 | .start = gic_iid(0xad + (idx)), \ | ||
91 | .flags = IORESOURCE_IRQ, \ | ||
92 | } \ | ||
93 | }; \ | 82 | }; \ |
94 | \ | 83 | \ |
95 | static struct gpio_rcar_config r8a7779_gpio##idx##_platform_data = { \ | 84 | static struct gpio_rcar_config r8a7779_gpio##idx##_platform_data = { \ |