]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 20 Apr 2025 08:15:36 +0000 (10:15 +0200)
commit983b5434a66b84a6c06c6d5dfe2dbe11e8feb5d2
tree3968e1cb014b36e5a33f66deed22f7f73aedfff1
parent3ff4feef7af388299a23a0a49a48679b633b0a0e
media: i2c: ccs: Set the device's runtime PM status correctly in remove

commit e04604583095faf455b3490b004254a225fd60d4 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/i2c/ccs/ccs-core.c