diff options
| author | Sakari Ailus <[email protected]> | 2025-01-10 13:54:22 +0000 |
|---|---|---|
| committer | Hans Verkuil <[email protected]> | 2025-02-15 14:22:50 +0000 |
| commit | 80704d14f1bd3628f578510e0a88b66824990ef6 (patch) | |
| tree | 241c48ff901201236f02086d58a4a8548e59ac15 /drivers/media/i2c/ccs/ccs-core.c | |
| parent | media: i2c: ccs: Set the device's runtime PM status correctly in remove (diff) | |
| download | kernel-80704d14f1bd3628f578510e0a88b66824990ef6.tar.gz kernel-80704d14f1bd3628f578510e0a88b66824990ef6.zip | |
media: i2c: ccs: Set the device's runtime PM status correctly in probe
Set the device's runtime PM status to suspended in probe error paths where
it was previously set to active.
Fixes: 9447082ae666 ("[media] smiapp: Implement power-on and power-off sequences without runtime PM")
Cc: [email protected] # for >= v5.15
Signed-off-by: Sakari Ailus <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Diffstat (limited to 'drivers/media/i2c/ccs/ccs-core.c')
| -rw-r--r-- | drivers/media/i2c/ccs/ccs-core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/i2c/ccs/ccs-core.c b/drivers/media/i2c/ccs/ccs-core.c index 45b317216aba..004d28c33287 100644 --- a/drivers/media/i2c/ccs/ccs-core.c +++ b/drivers/media/i2c/ccs/ccs-core.c @@ -3566,6 +3566,7 @@ static int ccs_probe(struct i2c_client *client) out_disable_runtime_pm: pm_runtime_put_noidle(&client->dev); pm_runtime_disable(&client->dev); + pm_runtime_set_suspended(&client->dev); out_cleanup: ccs_cleanup(sensor); |
