diff options
author | Alexandre Courbot <acourbot@nvidia.com> | 2014-02-09 03:43:55 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-02-12 11:15:46 -0500 |
commit | 390d82e312c56b75407a3606cbcde8c4bc7f10ae (patch) | |
tree | bcdc0f0081f279ab8f9feba1ef9d232fd16e900d | |
parent | bb1e88ccb771492ac908ac295ec135efa1d53093 (diff) |
gpiolib: ACPI: remove gpio_to_desc() usage
gpio_to_desc() must die. Replace one of its usage by the
newly-introduced gpiochip_get_desc() function.
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r-- | drivers/gpio/gpiolib-acpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpiolib-acpi.c b/drivers/gpio/gpiolib-acpi.c index 716ee9843110..b7db098ba060 100644 --- a/drivers/gpio/gpiolib-acpi.c +++ b/drivers/gpio/gpiolib-acpi.c | |||
@@ -60,7 +60,7 @@ static struct gpio_desc *acpi_get_gpiod(char *path, int pin) | |||
60 | if (pin < 0 || pin > chip->ngpio) | 60 | if (pin < 0 || pin > chip->ngpio) |
61 | return ERR_PTR(-EINVAL); | 61 | return ERR_PTR(-EINVAL); |
62 | 62 | ||
63 | return gpio_to_desc(chip->base + pin); | 63 | return gpiochip_get_desc(chip, pin); |
64 | } | 64 | } |
65 | 65 | ||
66 | static irqreturn_t acpi_gpio_irq_handler(int irq, void *data) | 66 | static irqreturn_t acpi_gpio_irq_handler(int irq, void *data) |