From: Ladislav Michl Date: Mon, 22 Jan 2018 12:31:11 +0000 (+0100) Subject: pinctrl: Forward declare struct device X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d3452f1d88311c9af16d709d51dba5ad44afbd1d;p=linux.git 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 Signed-off-by: Linus Walleij --- diff --git a/include/linux/pinctrl/devinfo.h b/include/linux/pinctrl/devinfo.h index 05082e407c4a7..d01a8638bb455 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)