Amelie Delaunay f592cf6245 mfd: stmfx: Fix error path in stmfx_chip_init
In error path, disable vdd regulator if it exists, but don't overload ret.
Because if regulator_disable() is successful, stmfx_chip_init will exit
successfully while chip init failed.

Fixes: 06252ade9156 ("mfd: Add ST Multi-Function eXpander (STMFX) core driver")
Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
Link: https://lore.kernel.org/r/20230609092804.793100-1-amelie.delaunay@foss.st.com
Signed-off-by: Lee Jones <lee@kernel.org>
2023-06-15 15:05:29 +01:00
..
2023-06-15 09:19:37 +01:00
2019-07-15 20:18:40 -07:00
2023-05-02 10:41:31 -07:00
2023-05-15 16:20:22 +01:00
2023-05-15 16:20:22 +01:00
2023-04-26 11:40:34 +01:00