From: Laurent Pinchart Date: Sat, 15 Dec 2012 22:50:40 +0000 (+0100) Subject: sh: sh7786: Fix last GPIO index X-Git-Tag: next-20130218~14^2^5~75 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=451d0a9044bb3272c454f4ddb0e389dc49a6d9ba;p=karo-tx-linux.git 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 Acked-by: Linus Walleij Signed-off-by: Simon Horman --- 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 = { .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END }, .first_gpio = GPIO_PA7, - .last_gpio = GPIO_FN_FSE, + .last_gpio = GPIO_FN_IRL4, .gpios = pinmux_gpios, .cfg_regs = pinmux_config_regs,