diff mbox series

drm/bridge: anx7625: Add missing of_node_put for endpoint

Message ID 20220519112337.62198-1-marex@denx.de (mailing list archive)
State New, archived
Headers show
Series drm/bridge: anx7625: Add missing of_node_put for endpoint | expand

Commit Message

Marek Vasut May 19, 2022, 11:23 a.m. UTC
Add of_node_put call on the endpoint node after it is not needed.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Javier Martinez Canillas <javierm@redhat.com>
Cc: Lyude Paul <lyude@redhat.com>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Xin Ji <xji@analogixsemi.com>
---
 drivers/gpu/drm/bridge/analogix/anx7625.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Robert Foss May 23, 2022, 9:47 a.m. UTC | #1
On Thu, 19 May 2022 at 13:23, Marek Vasut <marex@denx.de> wrote:
>
> Add of_node_put call on the endpoint node after it is not needed.
>
> Signed-off-by: Marek Vasut <marex@denx.de>
> Cc: Alex Deucher <alexander.deucher@amd.com>
> Cc: Javier Martinez Canillas <javierm@redhat.com>
> Cc: Lyude Paul <lyude@redhat.com>
> Cc: Thomas Zimmermann <tzimmermann@suse.de>
> Cc: Xin Ji <xji@analogixsemi.com>
> ---
>  drivers/gpu/drm/bridge/analogix/anx7625.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/bridge/analogix/anx7625.c b/drivers/gpu/drm/bridge/analogix/anx7625.c
> index 53a5da6c49dd3..e92eb4a407452 100644
> --- a/drivers/gpu/drm/bridge/analogix/anx7625.c
> +++ b/drivers/gpu/drm/bridge/analogix/anx7625.c
> @@ -1638,6 +1638,7 @@ static int anx7625_parse_dt(struct device *dev,
>                         bus_type = 0;
>
>                 mipi_lanes = of_property_count_u32_elems(ep0, "data-lanes");
> +               of_node_put(ep0);
>         }
>
>         if (bus_type == V4L2_FWNODE_BUS_TYPE_PARALLEL) /* bus type is Parallel(DSI) */
> --
> 2.35.1
>

Reviewed-by: Robert Foss <robert.foss@linaro.org>

Applied to drm-misc-next.
diff mbox series

Patch

diff --git a/drivers/gpu/drm/bridge/analogix/anx7625.c b/drivers/gpu/drm/bridge/analogix/anx7625.c
index 53a5da6c49dd3..e92eb4a407452 100644
--- a/drivers/gpu/drm/bridge/analogix/anx7625.c
+++ b/drivers/gpu/drm/bridge/analogix/anx7625.c
@@ -1638,6 +1638,7 @@  static int anx7625_parse_dt(struct device *dev,
 			bus_type = 0;
 
 		mipi_lanes = of_property_count_u32_elems(ep0, "data-lanes");
+		of_node_put(ep0);
 	}
 
 	if (bus_type == V4L2_FWNODE_BUS_TYPE_PARALLEL) /* bus type is Parallel(DSI) */