diff options
author | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2021-05-09 13:33:37 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2021-05-17 14:54:27 +0200 |
commit | 264da512431495e542fcaf56ffe75e7df0e7db74 (patch) | |
tree | d87133ac1f85bf34798f7bca7c74ce58a4d38246 /scripts/get_maintainer.pl | |
parent | iio: accel: bmi088: Balance runtime pm + use pm_runtime_resume_and_get() (diff) | |
download | linux-264da512431495e542fcaf56ffe75e7df0e7db74.tar.xz linux-264da512431495e542fcaf56ffe75e7df0e7db74.zip |
iio: magn: bmc150: Balance runtime pm + use pm_runtime_resume_and_get()
probe() error paths after runtime pm is enabled, should disable it.
remove() should not call pm_runtime_put_noidle() as there is no
matching get() to have raised the reference count. This case
has no affect a the runtime pm core protects against going negative.
Whilst here use pm_runtime_resume_and_get() to tidy things up a little.
coccicheck script didn't get this one due to complex code structure so
found by inspection.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/20210509113354.660190-12-jic23@kernel.org
Diffstat (limited to 'scripts/get_maintainer.pl')
0 files changed, 0 insertions, 0 deletions