diff options
author | Ladislav Michl <ladis@linux-mips.org> | 2018-01-22 07:31:11 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-01-22 07:31:19 -0500 |
commit | d3452f1d88311c9af16d709d51dba5ad44afbd1d (patch) | |
tree | 88d3b2c319ae3ef0796c11009bfffee6696b145c /include/linux/pinctrl/devinfo.h | |
parent | 470b73a38470e8baf923b8424b5f54870efaef22 (diff) |
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>
Diffstat (limited to 'include/linux/pinctrl/devinfo.h')
-rw-r--r-- | include/linux/pinctrl/devinfo.h | 2 |
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); | |||
43 | 43 | ||
44 | #else | 44 | #else |
45 | 45 | ||
46 | struct device; | ||
47 | |||
46 | /* Stubs if we're not using pinctrl */ | 48 | /* Stubs if we're not using pinctrl */ |
47 | 49 | ||
48 | static inline int pinctrl_bind_pins(struct device *dev) | 50 | static inline int pinctrl_bind_pins(struct device *dev) |