summaryrefslogtreecommitdiffstats
path: root/drivers/media/i2c/smiapp
diff options
context:
space:
mode:
authorDinghao Liu <dinghao.liu@zju.edu.cn>2020-05-25 10:19:58 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-06-23 15:13:45 +0200
commit52db11f38333f90dcdc9a12a09f9ec990516025d (patch)
treec8d7a02693ed7d4faac1bef5476b31249a1855ae /drivers/media/i2c/smiapp
parente233f81cfc906e415e5784526d9a6ec7d7cf3c5c (diff)
downloadlinux-52db11f38333f90dcdc9a12a09f9ec990516025d.tar.gz
linux-52db11f38333f90dcdc9a12a09f9ec990516025d.tar.bz2
linux-52db11f38333f90dcdc9a12a09f9ec990516025d.zip
media: smiapp: Fix runtime PM imbalance on error
When v4l2_async_register_subdev_sensor_common() returns an error code, a pairing runtime PM usage counter decrement is needed to keep the counter balanced. Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/i2c/smiapp')
-rw-r--r--drivers/media/i2c/smiapp/smiapp-core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/i2c/smiapp/smiapp-core.c b/drivers/media/i2c/smiapp/smiapp-core.c
index 5e4f6a2ef78e..0a8d27481bd1 100644
--- a/drivers/media/i2c/smiapp/smiapp-core.c
+++ b/drivers/media/i2c/smiapp/smiapp-core.c
@@ -3103,6 +3103,7 @@ static int smiapp_probe(struct i2c_client *client)
return 0;
out_disable_runtime_pm:
+ pm_runtime_put_noidle(&client->dev);
pm_runtime_disable(&client->dev);
out_media_entity_cleanup: