diff options
author | Zheyu Ma <[email protected]> | 2022-04-09 11:48:49 +0800 |
---|---|---|
committer | Jonathan Cameron <[email protected]> | 2022-04-10 16:59:29 +0100 |
commit | 3a26787dacf04257a68b16315c984eb2c340bc5e (patch) | |
tree | c6ad52c71a88be6d6a6e650ed76c3e92ef3df98f /tools/perf/scripts | |
parent | 108e4d4de2b58011eafd14581b6ea7469f1fc467 (diff) |
iio: magnetometer: ak8975: Fix the error handling in ak8975_power_on()
When the driver fails to enable the regulator 'vid', we will get the
following splat:
[ 79.955610] WARNING: CPU: 5 PID: 441 at drivers/regulator/core.c:2257 _regulator_put+0x3ec/0x4e0
[ 79.959641] RIP: 0010:_regulator_put+0x3ec/0x4e0
[ 79.967570] Call Trace:
[ 79.967773] <TASK>
[ 79.967951] regulator_put+0x1f/0x30
[ 79.968254] devres_release_group+0x319/0x3d0
[ 79.968608] i2c_device_probe+0x766/0x940
Fix this by disabling the 'vdd' regulator when failing to enable 'vid'
regulator.
Signed-off-by: Zheyu Ma <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Cc: <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions