diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2012-12-15 17:50:40 -0500 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2013-01-24 19:24:20 -0500 |
commit | 451d0a9044bb3272c454f4ddb0e389dc49a6d9ba (patch) | |
tree | e0ba73c387869783c29c6a867f6e09603de2158b /arch/sh | |
parent | cc88ec4875d3da8746a74e5772aa331dbf661647 (diff) |
sh: sh7786: Fix last GPIO index
A careless look at the code shows that the last entry in the
pinmux_gpios seems to be GPIO_FN_FSE. 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_IRL4. 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>
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/pinmux-sh7786.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/pinmux-sh7786.c b/arch/sh/kernel/cpu/sh4a/pinmux-sh7786.c index c24a7779405e..60df99c7bc26 100644 --- a/arch/sh/kernel/cpu/sh4a/pinmux-sh7786.c +++ b/arch/sh/kernel/cpu/sh4a/pinmux-sh7786.c | |||
@@ -825,7 +825,7 @@ static struct pinmux_info sh7786_pinmux_info = { | |||
825 | .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END }, | 825 | .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END }, |
826 | 826 | ||
827 | .first_gpio = GPIO_PA7, | 827 | .first_gpio = GPIO_PA7, |
828 | .last_gpio = GPIO_FN_FSE, | 828 | .last_gpio = GPIO_FN_IRL4, |
829 | 829 | ||
830 | .gpios = pinmux_gpios, | 830 | .gpios = pinmux_gpios, |
831 | .cfg_regs = pinmux_config_regs, | 831 | .cfg_regs = pinmux_config_regs, |