]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: nxp: Add dev_err_probe() to all error paths in *async_register() helpers
authorFrank Li <Frank.Li@nxp.com>
Wed, 21 Jan 2026 20:42:03 +0000 (15:42 -0500)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Tue, 24 Mar 2026 21:14:44 +0000 (22:14 +0100)
commit5e4eabaded266db816657269864053da97eee30d
treeb45c9283a165b80230061903fa2ce67b24b68a2e
parent4de17cce8f0f65e85b3cec686437355b4452834d
media: nxp: Add dev_err_probe() to all error paths in *async_register() helpers

Add dev_err_probe() to all error branches in the *async_register() helpers
to provide clearer diagnostic information when device registration fails.

Drop the explicit error message after returning from
mipi_csis_async_register(), as the error is already reported by this
helper.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://patch.msgid.link/20260121-cam_cleanup-v5-1-01d1ab38db9d@nxp.com
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/platform/nxp/imx-mipi-csis.c
drivers/media/platform/nxp/imx8mq-mipi-csi2.c