Skip to content

Commit e45ee71

Browse files
thierryredinglinusw
authored andcommitted
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: Stephen Rothwell <[email protected]> Signed-off-by: Thierry Reding <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent a0b66a7 commit e45ee71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/pinctrl/pinctrl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ extern int pinctrl_get_group_pins(struct pinctrl_dev *pctldev,
186186
const char *pin_group, const unsigned **pins,
187187
unsigned *num_pins);
188188

189-
#ifdef CONFIG_OF
189+
#if IS_ENABLED(CONFIG_OF) && IS_ENABLED(CONFIG_PINCTRL)
190190
extern struct pinctrl_dev *of_pinctrl_get(struct device_node *np);
191191
#else
192192
static inline

0 commit comments

Comments
 (0)