diff options
author | Miaoqian Lin <[email protected]> | 2022-01-06 11:23:09 +0000 |
---|---|---|
committer | Jonathan Cameron <[email protected]> | 2022-01-30 14:50:34 +0000 |
commit | 632fe0bb8c5b9c06ec961f575ee42a6fff5eceeb (patch) | |
tree | c67d3c5d475815976dc574e155f6672f99b60836 /tools/perf/scripts/python/compaction-times.py | |
parent | 4165456fe6b7719c0c9626022a7d96c381c94e6f (diff) |
iio: Fix error handling for PM
The pm_runtime_enable will increase power disable depth.
If the probe fails, we should use pm_runtime_disable() to balance
pm_runtime_enable(). In the PM Runtime docs:
Drivers in ->remove() callback should undo the runtime PM changes done
in ->probe(). Usually this means calling pm_runtime_disable(),
pm_runtime_dont_use_autosuspend() etc.
We should do this in error handling.
Fix this problem for the following drivers: bmc150, bmg160, kmx61,
kxcj-1013, mma9551, mma9553.
Fixes: 7d0ead5c3f00 ("iio: Reconcile operation order between iio_register/unregister and pm functions")
Signed-off-by: Miaoqian Lin <[email protected]>
Reviewed-by: Andy Shevchenko <[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/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions