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>
This commit is contained in:
Ladislav Michl 2018-01-22 13:31:11 +01:00 committed by Linus Walleij
parent 470b73a384
commit d3452f1d88
1 changed files with 2 additions and 0 deletions

View 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)