History

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.

Thierry Reding committed 6 years ago

Commit e45ee711 parent a0b66a71 file · +1 −1Browse files

Showing the changes to include/linux (1 of 1 file). Show all

Unified · Split

include/linux/pinctrl/pinctrl.h+1−1
@@ -186,7 +186,7 @@ extern int pinctrl_get_group_pins(struct pinctrl_dev *pctldev, · 185 unmodified lines
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