pinctrl: Forward declare struct device
authorLadislav Michl <ladis@linux-mips.org>
Mon, 22 Jan 2018 12:31:11 +0000 (13:31 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 22 Jan 2018 12:31:19 +0000 (13:31 +0100)
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>
include/linux/pinctrl/devinfo.h

index 05082e407c4a7c242250b05a08fbf028447e6ad6..d01a8638bb4550437e3bf236531d15e6b9850a88 100644 (file)
@@ -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)