]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: i2c: ccs: Set the device's runtime PM status correctly in remove
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 10 Jan 2025 12:50:27 +0000 (14:50 +0200)
committerHans Verkuil <hverkuil@xs4all.nl>
Sat, 15 Feb 2025 14:22:50 +0000 (15:22 +0100)
commite04604583095faf455b3490b004254a225fd60d4
tree6f801ca7a8ff0d490c57bb5f7a0f88449644b837
parent09518df7856e36b221b4012a69a6854797d46925
media: i2c: ccs: Set the device's runtime PM status correctly in remove

Set the device's runtime PM status to suspended in device removal only if
it wasn't suspended already.

Fixes: 9447082ae666 ("[media] smiapp: Implement power-on and power-off sequences without runtime PM")
Cc: stable@vger.kernel.org # for >= v5.15
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/i2c/ccs/ccs-core.c