summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLadislav Michl <ladis@linux-mips.org>2018-01-22 13:31:11 +0100
committerLinus Walleij <linus.walleij@linaro.org>2018-01-22 13:31:19 +0100
commitd3452f1d88311c9af16d709d51dba5ad44afbd1d (patch)
tree88d3b2c319ae3ef0796c11009bfffee6696b145c
parent470b73a38470e8baf923b8424b5f54870efaef22 (diff)
downloadlinux-stable-d3452f1d88311c9af16d709d51dba5ad44afbd1d.tar.gz
linux-stable-d3452f1d88311c9af16d709d51dba5ad44afbd1d.tar.bz2
linux-stable-d3452f1d88311c9af16d709d51dba5ad44afbd1d.zip
pinctrl: Forward declare struct device
pinctrl/devinfo.h is using forward declaration from pinctrl/consumer.h for configurations with CONFIG_PINCTRL defined, however nothing declares it in the opposite case. Fix this by adding a forward declaration. Signed-off-by: Ladislav Michl <ladis@linux-mips.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r--include/linux/pinctrl/devinfo.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/pinctrl/devinfo.h b/include/linux/pinctrl/devinfo.h
index 05082e407c4a..d01a8638bb45 100644
--- a/include/linux/pinctrl/devinfo.h
+++ b/include/linux/pinctrl/devinfo.h
@@ -43,6 +43,8 @@ extern int pinctrl_init_done(struct device *dev);
#else
+struct device;
+
/* Stubs if we're not using pinctrl */
static inline int pinctrl_bind_pins(struct device *dev)