gpiolib: fix of_find_gpio() when OF not defined

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>
This commit is contained in:
Alexandre Courbot 2013-11-19 10:37:29 +09:00 committed by Linus Walleij
parent 61c6375d55
commit 209e64f9ed

View File

@ -2302,7 +2302,8 @@ static struct gpio_desc *of_find_gpio(struct device *dev, const char *con_id,
} }
#else #else
static struct gpio_desc *of_find_gpio(struct device *dev, const char *con_id, 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); return ERR_PTR(-ENODEV);
} }