[PATCH v3 5/8] thermal: exynos: simplify regulator (de)initialization

Krzysztof Kozlowski krzysztof.kozlowski at linaro.org
Fri Oct 6 06:15:50 PDT 2023


On 03/10/2023 13:16, Mateusz Majewski wrote:
> We rewrite the initialization to enable the regulator as part of devm,
> which allows us to not handle the struct instance manually. We also
> remove the error message in case the regulator is unavailable, as this
> is expected behaviour.
> 
> Signed-off-by: Mateusz Majewski <m.majewski2 at samsung.com>
> ---
> v2 -> v3: fixed error handling of devm_regulator_get_optional to handle
>   the case in which the regulator is available, but enabling it fails.
>   Also removed the error message, split into two commits and reworded
>   the commit message.
> 

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski at linaro.org>

Best regards,
Krzysztof




More information about the linux-arm-kernel mailing list