Skip to content
Commit d75846ed authored by Amelie Delaunay's avatar Amelie Delaunay Committed by Lee Jones
Browse files

mfd: stmfx: Fix dev_err_probe() call in stmfx_chip_init()



'ret' may be 0 so, dev_err_probe() should be called only when 'ret' is
an error code.

Fixes: 41c9c06c ("mfd: stmfx: Simplify with dev_err_probe()")
Signed-off-by: default avatarAmelie Delaunay <amelie.delaunay@st.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent de129281
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment