diff options
| author | Amelie Delaunay <amelie.delaunay@foss.st.com> | 2023-06-09 11:28:04 +0200 |
|---|---|---|
| committer | Lee Jones <lee@kernel.org> | 2023-06-15 15:05:49 +0100 |
| commit | 7c81582c0bccb4757186176f0ee12834597066ad (patch) | |
| tree | f3ce6c62228003039c55fd32b4955eb27b6c9d57 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | mfd: stmfx: Fix error path in stmfx_chip_init (diff) | |
| download | linux-7c81582c0bccb4757186176f0ee12834597066ad.tar.gz linux-7c81582c0bccb4757186176f0ee12834597066ad.zip | |
mfd: stmfx: Nullify stmfx->vdd in case of error
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@foss.st.com>
Link: https://lore.kernel.org/r/20230609092804.793100-2-amelie.delaunay@foss.st.com
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
