pinctrl: Define of_pinctrl_get() dummy for !PINCTRL
Subsystems (2)
PATCH 1/1 pinctrl: Define of_pinctrl_get() dummy for !PINCTRL
From: Thierry Reding <[email protected]>
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]>
--- include/linux/pinctrl/pinctrl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/pinctrl/pinctrl.h +1 -1
@@ -186,7 +186,7 @@ extern int pinctrl_get_group_pins(struct pinctrl_dev *pctldev, const char *pin_group, const unsigned **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);#else static inline
Signature · 1 line
2.24.1
Quoted 9 lines · Thierry Reding
From: Thierry Reding <[email protected]>
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]>
Patch applied.
Yours,
Linus Walleij