diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2012-12-15 17:50:41 -0500 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2013-01-24 19:24:20 -0500 |
commit | e62ebcdbce9eff4dc48168e86960c0dfcba086ea (patch) | |
tree | 628feeea979bad5b2703644f1d578f8b1ffc0bd7 | |
parent | 451d0a9044bb3272c454f4ddb0e389dc49a6d9ba (diff) |
sh: shx3: Fix last GPIO index
A careless look at the code shows that the last entry in the
pinmux_gpios seems to be GPIO_FN_IRQOUT. However, entries are ordered by
the GPIO number, as the PINMUX_GPIO macro is expended to an indexed
array initializer. The last entry in the array is thus GPIO_FN_STATUS0.
Set the pinmux_info last_gpio field accordingly.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/pinmux-shx3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/pinmux-shx3.c b/arch/sh/kernel/cpu/sh4a/pinmux-shx3.c index aaa5338abbff..2ebb98306425 100644 --- a/arch/sh/kernel/cpu/sh4a/pinmux-shx3.c +++ b/arch/sh/kernel/cpu/sh4a/pinmux-shx3.c | |||
@@ -572,7 +572,7 @@ static struct pinmux_info shx3_pinmux_info = { | |||
572 | .mark = { PINMUX_MARK_BEGIN, PINMUX_MARK_END }, | 572 | .mark = { PINMUX_MARK_BEGIN, PINMUX_MARK_END }, |
573 | .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END }, | 573 | .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END }, |
574 | .first_gpio = GPIO_PA7, | 574 | .first_gpio = GPIO_PA7, |
575 | .last_gpio = GPIO_FN_IRQOUT, | 575 | .last_gpio = GPIO_FN_STATUS0, |
576 | .gpios = shx3_pinmux_gpios, | 576 | .gpios = shx3_pinmux_gpios, |
577 | .gpio_data = shx3_pinmux_data, | 577 | .gpio_data = shx3_pinmux_data, |
578 | .gpio_data_size = ARRAY_SIZE(shx3_pinmux_data), | 578 | .gpio_data_size = ARRAY_SIZE(shx3_pinmux_data), |