sh-pfc: Fix PINMUX_GPIO macro
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tue, 26 Nov 2013 01:45:34 +0000 (02:45 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 10 Dec 2013 12:12:28 +0000 (13:12 +0100)
Commit 7cbb0e55e27e ("sh-pfc: Don't duplicate argument to PINMUX_GPIO
macro") erronesouly modified the PINMUX_GPIO macro in a way that
resulted in all pins being named "name". Fix the macro to name the pins
correctly.

Cc: stable@vger.kernel.org
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sh-pfc/sh_pfc.h

index 11bd0d9..e214295 100644 (file)
@@ -254,7 +254,7 @@ struct sh_pfc_soc_info {
 #define PINMUX_GPIO(_pin)                                              \
        [GPIO_##_pin] = {                                               \
                .pin = (u16)-1,                                         \
-               .name = __stringify(name),                              \
+               .name = __stringify(GPIO_##_pin),                       \
                .enum_id = _pin##_DATA,                                 \
        }