diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2013-10-29 05:10:13 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-10-29 21:26:14 -0400 |
commit | 335d7a7d63aa3a6da4d4903ef6e64de4a88f27da (patch) | |
tree | d629720f8f40b29e11b1f4a9ce5a82a2b59cfe63 /include | |
parent | 403c1d0be5ccbd750d25c59d8358843a81e52e3b (diff) |
gpiolib: include gpio/consumer.h in of_gpio.h for desc_to_gpio()
Fixes this build error on sparc:
In file included from drivers/spi/spi.c:33:0:
include/linux/of_gpio.h: In function 'of_get_named_gpio_flags':
include/linux/of_gpio.h:93:3: error: implicit declaration of function 'desc_to_gpio' [-Werror=implicit-function-declaration]
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/of_gpio.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/of_gpio.h b/include/linux/of_gpio.h index d71f2cc141ae..f14123a5a9df 100644 --- a/include/linux/of_gpio.h +++ b/include/linux/of_gpio.h | |||
@@ -19,9 +19,9 @@ | |||
19 | #include <linux/errno.h> | 19 | #include <linux/errno.h> |
20 | #include <linux/gpio.h> | 20 | #include <linux/gpio.h> |
21 | #include <linux/of.h> | 21 | #include <linux/of.h> |
22 | #include <linux/gpio/consumer.h> | ||
22 | 23 | ||
23 | struct device_node; | 24 | struct device_node; |
24 | struct gpio_desc; | ||
25 | 25 | ||
26 | /* | 26 | /* |
27 | * This is Linux-specific flags. By default controllers' and Linux' mapping | 27 | * This is Linux-specific flags. By default controllers' and Linux' mapping |