diff options
author | Magnus Damm <damm@opensource.se> | 2013-10-17 06:51:46 +0900 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2013-11-24 15:14:31 +0900 |
commit | 8d0b3bf79bfa1dc7d3e2a9dc2b6f2ceea353687f (patch) | |
tree | e3bc606a6ded2a24eb27fd762c8c236243030737 /arch/arm/mach-shmobile/setup-r8a7790.c | |
parent | 20c6125fc9d98492e5ed1668d1ea72289c8ff94c (diff) | |
download | blackbird-obmc-linux-8d0b3bf79bfa1dc7d3e2a9dc2b6f2ceea353687f.tar.gz blackbird-obmc-linux-8d0b3bf79bfa1dc7d3e2a9dc2b6f2ceea353687f.zip |
ARM: shmobile: Add r8a7790_register_pfc() function
Break out the r8a7790 PFC platform device creation code
to increase readability and follow same style as r8a7791.
Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/arm/mach-shmobile/setup-r8a7790.c')
-rw-r--r-- | arch/arm/mach-shmobile/setup-r8a7790.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/arm/mach-shmobile/setup-r8a7790.c b/arch/arm/mach-shmobile/setup-r8a7790.c index c47bcebbcb00..3543c3bacb75 100644 --- a/arch/arm/mach-shmobile/setup-r8a7790.c +++ b/arch/arm/mach-shmobile/setup-r8a7790.c @@ -34,6 +34,10 @@ static const struct resource pfc_resources[] __initconst = { 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); |