From: Kuninori Morimoto Date: Tue, 9 Apr 2013 04:54:18 +0000 (+0000) Subject: sh-pfc: r8a7779: use RCAR_GP_PIN() on _GP_GPIO() macro X-Git-Tag: next-20130527~8^2^13~106 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ad4788bda65f8d6bbd079785a37f3f9d37b51c21;p=karo-tx-linux.git sh-pfc: r8a7779: use RCAR_GP_PIN() on _GP_GPIO() macro Signed-off-by: Kuninori Morimoto Acked-by: Laurent Pinchart Signed-off-by: Simon Horman --- diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7779.c b/drivers/pinctrl/sh-pfc/pfc-r8a7779.c index 8ae52fe69874..98dbcb43f08a 100644 --- a/drivers/pinctrl/sh-pfc/pfc-r8a7779.c +++ b/drivers/pinctrl/sh-pfc/pfc-r8a7779.c @@ -80,7 +80,7 @@ #define _GP_PORT_ALL(bank, pin, name, sfx) name##_##sfx #define _GP_GPIO(bank, pin, _name, sfx) \ - [(bank * 32) + pin] = { \ + [RCAR_GP_PIN(bank, pin)] = { \ .name = __stringify(_name), \ .enum_id = _name##_DATA, \ }