diff options
author | Ladislav Michl <ladis@linux-mips.org> | 2018-01-22 13:31:11 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-01-22 13:31:19 +0100 |
commit | d3452f1d88311c9af16d709d51dba5ad44afbd1d (patch) | |
tree | 88d3b2c319ae3ef0796c11009bfffee6696b145c /include/linux/pinctrl | |
parent | 470b73a38470e8baf923b8424b5f54870efaef22 (diff) | |
download | linux-d3452f1d88311c9af16d709d51dba5ad44afbd1d.tar.gz linux-d3452f1d88311c9af16d709d51dba5ad44afbd1d.tar.bz2 linux-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>
Diffstat (limited to 'include/linux/pinctrl')
-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); #else +struct device; + /* Stubs if we're not using pinctrl */ static inline int pinctrl_bind_pins(struct device *dev) |