diff options
| author | David Heidelberg <david@ixit.cz> | 2025-04-02 21:33:25 +0200 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2025-04-22 19:09:57 +0100 |
| commit | c0461f8e842495041c18b2c67647501d55c17441 (patch) | |
| tree | 54a770faf1c882b792120c467557d0d453b807d3 /tools/perf/scripts/python/bin | |
| parent | 42b1a2663f4b7630f3a2793969f9c8f2ff451db4 (diff) | |
| download | linux-c0461f8e842495041c18b2c67647501d55c17441.tar.gz linux-c0461f8e842495041c18b2c67647501d55c17441.zip | |
iio: light: al3000a: Fix an error handling path in al3000a_probe()
If regmap_write() fails in al3000a_init(), al3000a_set_pwr_off is
not called.
In order to avoid such a situation, move the devm_add_action_or_reset()
which calls al3000a_set_pwr_off right after a successful
al3000a_set_pwr_on.
Signed-off-by: David Heidelberg <david@ixit.cz>
Link: https://patch.msgid.link/20250402-al3010-iio-regmap-v4-2-d189bea87261@ixit.cz
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
