Commit e45ee71a authored by Thierry Reding's avatar Thierry Reding Committed by Linus Walleij
Browse files

pinctrl: Define of_pinctrl_get() dummy for !PINCTRL



Currently, the of_pinctrl_get() dummy is only defined for !OF, which can
still cause build failures on configurations with OF enabled but PINCTRL
disabled. Make sure to define the dummy if either OF or PINCTRL are not
enabled.

Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20200330095801.2421589-1-thierry.reding@gmail.com


Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent a0b66a73
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -186,7 +186,7 @@ extern int pinctrl_get_group_pins(struct pinctrl_dev *pctldev,
				const char *pin_group, const unsigned **pins,
				const char *pin_group, const unsigned **pins,
				unsigned *num_pins);
				unsigned *num_pins);


#ifdef CONFIG_OF
#if IS_ENABLED(CONFIG_OF) && IS_ENABLED(CONFIG_PINCTRL)
extern struct pinctrl_dev *of_pinctrl_get(struct device_node *np);
extern struct pinctrl_dev *of_pinctrl_get(struct device_node *np);
#else
#else
static inline
static inline