diff options
| -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 = { | |||
| 34 | DEFINE_RES_MEM(0xe6060000, 0x250), | 34 | DEFINE_RES_MEM(0xe6060000, 0x250), |
| 35 | }; | 35 | }; |
| 36 | 36 | ||
| 37 | #define r8a7790_register_pfc() \ | ||
| 38 | platform_device_register_simple("pfc-r8a7790", -1, pfc_resources, \ | ||
| 39 | ARRAY_SIZE(pfc_resources)) | ||
| 40 | |||
| 37 | #define R8A7790_GPIO(idx) \ | 41 | #define R8A7790_GPIO(idx) \ |
| 38 | static const struct resource r8a7790_gpio##idx##_resources[] __initconst = { \ | 42 | static const struct resource r8a7790_gpio##idx##_resources[] __initconst = { \ |
| 39 | DEFINE_RES_MEM(0xe6050000 + 0x1000 * (idx), 0x50), \ | 43 | DEFINE_RES_MEM(0xe6050000 + 0x1000 * (idx), 0x50), \ |
| @@ -65,8 +69,7 @@ R8A7790_GPIO(5); | |||
| 65 | 69 | ||
| 66 | void __init r8a7790_pinmux_init(void) | 70 | void __init r8a7790_pinmux_init(void) |
| 67 | { | 71 | { |
| 68 | platform_device_register_simple("pfc-r8a7790", -1, pfc_resources, | 72 | r8a7790_register_pfc(); |
| 69 | ARRAY_SIZE(pfc_resources)); | ||
| 70 | r8a7790_register_gpio(0); | 73 | r8a7790_register_gpio(0); |
| 71 | r8a7790_register_gpio(1); | 74 | r8a7790_register_gpio(1); |
| 72 | r8a7790_register_gpio(2); | 75 | r8a7790_register_gpio(2); |
