Commit 52db11f3 authored by Dinghao Liu's avatar Dinghao Liu Committed by Mauro Carvalho Chehab

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: default avatarDinghao Liu <dinghao.liu@zju.edu.cn>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent e233f81c
...@@ -3103,6 +3103,7 @@ static int smiapp_probe(struct i2c_client *client) ...@@ -3103,6 +3103,7 @@ static int smiapp_probe(struct i2c_client *client)
return 0; return 0;
out_disable_runtime_pm: out_disable_runtime_pm:
pm_runtime_put_noidle(&client->dev);
pm_runtime_disable(&client->dev); pm_runtime_disable(&client->dev);
out_media_entity_cleanup: out_media_entity_cleanup:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment