pinctrl: samsung: defer pinctrl_enable
authorMateusz Majewski <m.majewski2@samsung.com>
Fri, 6 Oct 2023 12:55:54 +0000 (14:55 +0200)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Mon, 9 Oct 2023 10:37:20 +0000 (12:37 +0200)
commit2aca5c591ef4ecc4bcb9be3c9a9360d3d5238866
treebf434053314a53e0a38422dc7f61d3396eacc92f
parent4e1e21117e7e1275477ba80e634c769a511249bd
pinctrl: samsung: defer pinctrl_enable

dev_pinctrl_register function immediately enables the pinctrl subsystem,
which is unpreferable in general, since drivers might be unable to
handle calls immediately. Hence devm_pinctrl_register_and_init, which
does not call pinctrl_enable, is preferred.

In case of our driver using the old function does not seem to be
problematic for now, but will become an issue when we postpone parts of
pinctrl initialization in a future commit, and it is a good idea to move
off a deprecated-ish function anyway.

Signed-off-by: Mateusz Majewski <m.majewski2@samsung.com>
Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org>
Tested-by: Sam Protsenko <semen.protsenko@linaro.org>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Link: https://lore.kernel.org/r/20231006125557.212681-2-m.majewski2@samsung.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
drivers/pinctrl/samsung/pinctrl-samsung.c