From: Stephen Rothwell Date: Tue, 29 Oct 2013 09:10:13 +0000 (+1100) Subject: gpiolib: include gpio/consumer.h in of_gpio.h for desc_to_gpio() X-Git-Tag: v3.13-rc1~120^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=335d7a7d63aa3a6da4d4903ef6e64de4a88f27da;p=kernel%2Fkernel-generic.git 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 Signed-off-by: Linus Walleij --- diff --git a/include/linux/of_gpio.h b/include/linux/of_gpio.h index d71f2cc..f14123a 100644 --- a/include/linux/of_gpio.h +++ b/include/linux/of_gpio.h @@ -19,9 +19,9 @@ #include #include #include +#include struct device_node; -struct gpio_desc; /* * This is Linux-specific flags. By default controllers' and Linux' mapping