From: Laurent Pinchart Date: Mon, 8 Apr 2013 10:05:32 +0000 (+0200) Subject: ARM: shmobile: marzen: Use RCAR_GP_PIN macro X-Git-Tag: next-20130521~8^2~1^5~2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6a0b919067c0733b8ece9a400e1db58ae51aaf73;p=karo-tx-linux.git ARM: shmobile: marzen: Use RCAR_GP_PIN macro Replace hardcoded pin numbers with the RCAR_GP_PIN macro to make the code match the documentation. Signed-off-by: Laurent Pinchart Signed-off-by: Simon Horman --- diff --git a/arch/arm/mach-shmobile/board-marzen.c b/arch/arm/mach-shmobile/board-marzen.c index 91052855cc12..fac9e0f87897 100644 --- a/arch/arm/mach-shmobile/board-marzen.c +++ b/arch/arm/mach-shmobile/board-marzen.c @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include @@ -173,15 +174,15 @@ static struct platform_device usb_phy_device = { static struct gpio_led marzen_leds[] = { { .name = "led2", - .gpio = 157, + .gpio = RCAR_GP_PIN(4, 29), .default_state = LEDS_GPIO_DEFSTATE_ON, }, { .name = "led3", - .gpio = 158, + .gpio = RCAR_GP_PIN(4, 30), .default_state = LEDS_GPIO_DEFSTATE_ON, }, { .name = "led4", - .gpio = 159, + .gpio = RCAR_GP_PIN(4, 31), .default_state = LEDS_GPIO_DEFSTATE_ON, }, };