[PATCH v4 2/4] drm/bridge: imx8qxp-pixel-link: simplify freeing of the remote device_node
Liu Ying
victor.liu at nxp.com
Mon Jan 26 00:09:07 PST 2026
On Wed, Jan 07, 2026 at 10:56:27AM +0100, Luca Ceresoli wrote:
> The main loop in imx8qxp_pixel_link_find_next_bridge() requires calling
> of_node_put() in multiple places, complicating code flow. Simplify it by
> using a cleanup action and making the 'remote' variable scope local to the
> loop.
>
> Reviewed-by: Maxime Ripard <mripard at kernel.org>
> Signed-off-by: Luca Ceresoli <luca.ceresoli at bootlin.com>
> ---
> drivers/gpu/drm/bridge/imx/imx8qxp-pixel-link.c | 12 ++++--------
> 1 file changed, 4 insertions(+), 8 deletions(-)
Reviewed-by: Liu Ying <victor.liu at nxp.com>
More information about the linux-arm-kernel
mailing list