]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
gpiolib: fix of_find_gpio() when OF not defined
authorAlexandre Courbot <acourbot@nvidia.com>
Tue, 19 Nov 2013 01:37:29 +0000 (10:37 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 25 Nov 2013 08:03:13 +0000 (09:03 +0100)
The prototype for static GPIO lookup functions has been updated to use
an explicit type for GPIO lookup flags. Unfortunately the definition of
of_find_gpio() when CONFIG_OF is not defined has been omitted, which
triggers a warning. This patch fixes this.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c

index 14ab16fbaad5583f4f2a86ee8743ce485da9f678..ac53a95936626800143d1ad30320329f0f3ec050 100644 (file)
@@ -2302,7 +2302,8 @@ static struct gpio_desc *of_find_gpio(struct device *dev, const char *con_id,
 }
 #else
 static struct gpio_desc *of_find_gpio(struct device *dev, const char *con_id,
-                                     unsigned int idx, unsigned long *flags)
+                                     unsigned int idx,
+                                     enum gpio_lookup_flags *flags)
 {
        return ERR_PTR(-ENODEV);
 }