]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: i2c: ccs: Set the device's runtime PM status correctly in probe
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 10 Jan 2025 13:54:22 +0000 (15:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 May 2025 05:44:01 +0000 (07:44 +0200)
commit7c3118db4998c92ec171c9f592d99085752ea789
tree8e61327ecf87a7efe0ae4b249e1caf9ed3a363b4
parent5a6b5aa8ebc1780959c79738b87633489f18da48
media: i2c: ccs: Set the device's runtime PM status correctly in probe

commit 80704d14f1bd3628f578510e0a88b66824990ef6 upstream.

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: 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