Skip to content

Commit

Permalink
gpiolib: include gpio/consumer.h in of_gpio.h for desc_to_gpio()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stephen Rothwell authored and Linus Walleij committed Oct 30, 2013
1 parent 403c1d0 commit 335d7a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/of_gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
#include <linux/errno.h>
#include <linux/gpio.h>
#include <linux/of.h>
#include <linux/gpio/consumer.h>

struct device_node;
struct gpio_desc;

/*
* This is Linux-specific flags. By default controllers' and Linux' mapping
Expand Down

0 comments on commit 335d7a7

Please sign in to comment.