[RESEND PATCH 2/2] mfd: stmfx: Nullify stmfx->vdd in case of error

Lee Jones lee at kernel.org
Thu Jun 15 07:05:57 PDT 2023


On Fri, 09 Jun 2023, Amelie Delaunay wrote:

> Nullify stmfx->vdd in case devm_regulator_get_optional() returns an error.
> And simplify code by returning an error only if return code is not -ENODEV,
> which means there is no vdd regulator and it is not an issue.
> 
> Fixes: d75846ed08e6 ("mfd: stmfx: Fix dev_err_probe() call in stmfx_chip_init()")
> Signed-off-by: Amelie Delaunay <amelie.delaunay at foss.st.com>
> ---
>  drivers/mfd/stmfx.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)

Applied, thanks

-- 
Lee Jones [李琼斯]



More information about the linux-arm-kernel mailing list