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.
Showing the changes to include/linux/pinctrl (1 of 1 file). Show all
Unified · Split
| @@ -186,7 +186,7 @@ extern int pinctrl_get_group_pins(struct pinctrl_dev *pctldev, · 185 unmodified lines | |||
| 186 | const char *pin_group, const unsigned **pins, | 186 | const char *pin_group, const unsigned **pins, |
| 187 | unsigned *num_pins); | 187 | unsigned *num_pins); |
| 188 | 188 | ||
| 189 | #ifdef CONFIG_OF | 189 | #if IS_ENABLED(CONFIG_OF) && IS_ENABLED(CONFIG_PINCTRL) |
| 190 | extern struct pinctrl_dev *of_pinctrl_get(struct device_node *np); | 190 | extern struct pinctrl_dev *of_pinctrl_get(struct device_node *np); |
| 191 | #else | 191 | #else |
| 192 | static inline | 192 | static inline |