diff options
author | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2021-05-16 17:21:03 +0100 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2021-06-16 14:53:13 +0100 |
commit | 64f9dc6a68002fc3f1890cb90312a2ace19df99e (patch) | |
tree | fb293b06a41a6d77fc925bdd7d0f58cf65d2b772 /drivers/iio/humidity | |
parent | c2f89f4ccd7a155af2739300de712b8f96aa76a3 (diff) | |
download | lwn-64f9dc6a68002fc3f1890cb90312a2ace19df99e.tar.gz lwn-64f9dc6a68002fc3f1890cb90312a2ace19df99e.zip |
iio: pressure: icp10100: Balance runtime pm + use pm_runtime_resume_and_get()
The devm_ handled runtime pm disable calls pm_runtime_put_sync_suspend()
which isn't balancing a matching get call. It isn't a bug as such,
because the runtime pm core doesn't decrement the reference count below
zero, but it is missleading so let's drop it.
Using pm_runtime_resume_and_get() new call makes it easy to handle
failures in resume as it doesn't hold a reference count if it exits
with an error.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Jean-Baptiste Maneyrol <jmaneyrol@invensense.com>
Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/20210516162103.1332291-7-jic23@kernel.org
Diffstat (limited to 'drivers/iio/humidity')
0 files changed, 0 insertions, 0 deletions