diff options
author | Daniel Scally <djrscally@gmail.com> | 2021-11-23 01:00:01 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-11-30 10:51:36 +0100 |
commit | d2484fbf780762f6f9cc3abb7a07ee42dca2eaa3 (patch) | |
tree | 94c628b3d8ad28f0a5f8232d3bc37ebfc0096306 /drivers/media/i2c | |
parent | media: ipu3-cio2: Add link freq for INT33BE entry (diff) | |
download | linux-d2484fbf780762f6f9cc3abb7a07ee42dca2eaa3.tar.xz linux-d2484fbf780762f6f9cc3abb7a07ee42dca2eaa3.zip |
media: i2c: Re-order runtime pm initialisation
The kerneldoc for pm_runtime_set_suspended() says:
"It is not valid to call this function for devices with runtime PM
enabled"
To satisfy that requirement, re-order the calls so that
pm_runtime_enable() is the last one.
Fixes: 11c0d8fdccc5 ("media: i2c: Add support for the OV8865 image sensor")
Signed-off-by: Daniel Scally <djrscally@gmail.com>
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')
-rw-r--r-- | drivers/media/i2c/ov8865.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/ov8865.c b/drivers/media/i2c/ov8865.c index ce50f3ea87b8..490832cdb831 100644 --- a/drivers/media/i2c/ov8865.c +++ b/drivers/media/i2c/ov8865.c @@ -2897,8 +2897,8 @@ static int ov8865_probe(struct i2c_client *client) /* Runtime PM */ - pm_runtime_enable(sensor->dev); pm_runtime_set_suspended(sensor->dev); + pm_runtime_enable(sensor->dev); /* V4L2 subdev register */ |