aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorJonathan Cameron <[email protected]>2021-05-09 12:33:27 +0100
committerJonathan Cameron <[email protected]>2021-05-17 13:54:25 +0100
commit41120ebbb1eb5e9dec93320e259d5b2c93226073 (patch)
tree7eb1427c01f6320f9b2a0668890a0bce0f3fffca /tools/perf/scripts/python/bin
parentc630c1768522d5728e51470ea4f292a35919bb6d (diff)
iio: gyro: fxa21002c: Balance runtime pm + use pm_runtime_resume_and_get().
In both the probe() error path and remove() pm_runtime_put_noidle() is called which will decrement the runtime pm reference count. However, there is no matching function to have raised the reference count. Not this isn't a fix as the runtime pm core will stop the reference count going negative anyway. An alternative would have been to raise the count in these paths, but it is not clear why that would be necessary. Whilst we are here replace some boilerplate with pm_runtime_resume_and_get() Found using coccicheck script under review at: https://lore.kernel.org/lkml/[email protected]/ Signed-off-by: Jonathan Cameron <[email protected]> Reviewed-by: Rui Miguel Silva <[email protected]> Reviewed-by: Mauro Carvalho Chehab <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions