]> git.baikalelectronics.ru Git - kernel.git/commit
media: i2c: Re-order runtime pm initialisation
authorDaniel Scally <djrscally@gmail.com>
Tue, 23 Nov 2021 00:00:01 +0000 (01:00 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 30 Nov 2021 09:51:36 +0000 (10:51 +0100)
commit62302528b41af2f5c7bdc9f787893f8c4178581c
tree94c628b3d8ad28f0a5f8232d3bc37ebfc0096306
parentd07a7cc1e3b2396f451562e596dfa306968d2e94
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: f2a1d356d7e3 ("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>
drivers/media/i2c/ov8865.c