Commit c36219d9 authored by Andrew F. Davis's avatar Andrew F. Davis Committed by Linus Walleij

gpio: davinci: Remove unneeded GPIO macro

This macro does nothing and has only one user, remove it.
Signed-off-by: default avatarAndrew F. Davis <afd@ti.com>
Tested-by: default avatarKeerthy <j-keerthy@ti.com>
Acked-by: default avatarKeerthy <j-keerthy@ti.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent c809e37a
...@@ -130,10 +130,10 @@ static struct platform_device davinci_fb_device = { ...@@ -130,10 +130,10 @@ static struct platform_device davinci_fb_device = {
}; };
static const struct gpio_led ntosd2_leds[] = { static const struct gpio_led ntosd2_leds[] = {
{ .name = "led1_green", .gpio = GPIO(10), }, { .name = "led1_green", .gpio = 10, },
{ .name = "led1_red", .gpio = GPIO(11), }, { .name = "led1_red", .gpio = 11, },
{ .name = "led2_green", .gpio = GPIO(12), }, { .name = "led2_green", .gpio = 12, },
{ .name = "led2_red", .gpio = GPIO(13), }, { .name = "led2_red", .gpio = 13, },
}; };
static struct gpio_led_platform_data ntosd2_leds_data = { static struct gpio_led_platform_data ntosd2_leds_data = {
......
...@@ -45,11 +45,6 @@ struct davinci_gpio_controller { ...@@ -45,11 +45,6 @@ struct davinci_gpio_controller {
int irqs[MAX_INT_PER_BANK]; int irqs[MAX_INT_PER_BANK];
}; };
/*
* basic gpio routines
*/
#define GPIO(X) (X) /* 0 <= X <= (DAVINCI_N_GPIO - 1) */
/* Convert GPIO signal to GPIO pin number */ /* Convert GPIO signal to GPIO pin number */
#define GPIO_TO_PIN(bank, gpio) (16 * (bank) + (gpio)) #define GPIO_TO_PIN(bank, gpio) (16 * (bank) + (gpio))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment