pinctrl: Define of_pinctrl_get() dummy for !PINCTRL
authorThierry Reding <treding@nvidia.com>
Mon, 30 Mar 2020 09:58:01 +0000 (11:58 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 31 Mar 2020 20:08:54 +0000 (22:08 +0200)
commite45ee71ae101bd271c3cd951cf66341dc8f504a0
treed6a165369403e79f620cd8b4be3e94addf549ec7
parenta0b66a73785ccc8fedbff00383ffe814df9f63c7
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 <sfr@canb.auug.org.au>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20200330095801.2421589-1-thierry.reding@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
include/linux/pinctrl/pinctrl.h