Skip to content

Commit d3452f1

Browse files
3x380Vlinusw
authored andcommitted
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>
1 parent 470b73a commit d3452f1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/linux/pinctrl/devinfo.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ extern int pinctrl_init_done(struct device *dev);
4343

4444
#else
4545

46+
struct device;
47+
4648
/* Stubs if we're not using pinctrl */
4749

4850
static inline int pinctrl_bind_pins(struct device *dev)

0 commit comments

Comments
 (0)