]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: rkisp1: Discard pm_runtime_put() return value
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 22 Dec 2025 20:01:55 +0000 (21:01 +0100)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Wed, 21 Jan 2026 07:25:45 +0000 (08:25 +0100)
commitbb0365f4f3423ac54f892a28da6588da8a67dd42
treef540352f31d916597fd23e5e9a873b71bd0830af
parent23e1bfeff47658698673a7211dec0ced2a1a0a00
media: rkisp1: Discard pm_runtime_put() return value

Printing error messages on pm_runtime_put() returning negative values
is not particularly useful.

Returning an error code from pm_runtime_put() merely means that it has
not queued up a work item to check whether or not the device can be
suspended and there are many perfectly valid situations in which that
can happen, like after writing "on" to the devices' runtime PM "control"
attribute in sysfs for one example.

Accordingly, update rkisp1_vb2_stop_streaming() to simply discard the
return value of pm_runtime_put().

This will facilitate a planned change of the pm_runtime_put() return
type to void in the future.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://patch.msgid.link/2356323.iZASKD2KPV@rafael.j.wysocki
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/platform/rockchip/rkisp1/rkisp1-capture.c