]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: i2c: imx214: Use __free(fwnode_handle)
authorAndré Apitzsch <git@apitzsch.eu>
Mon, 30 Jun 2025 19:05:23 +0000 (21:05 +0200)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Mon, 25 Aug 2025 13:40:39 +0000 (15:40 +0200)
commit8bd24a43ccb719d26f7af4a2935a9228a68f785e
treedc4b86c9bb53416c76183018022c9ae71a7335ae
parent84aa4d2f59d2db4d96ec633bc4197f2b08d4f14f
media: i2c: imx214: Use __free(fwnode_handle)

Use the __free(fwnode_handle) hook to free the endpoint when the
function exits to simplify the error path.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: André Apitzsch <git@apitzsch.eu>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/i2c/imx214.c