Re: [PATCH] ARM: OMAP2+: adjust the location of put_device() call in omapdss_init_of

From: Tony Lindgren
Date: Fri Dec 17 2021 - 07:14:29 EST


* cgel.zte@xxxxxxxxx <cgel.zte@xxxxxxxxx> [211116 08:28]:
> From: Ye Guojin <ye.guojin@xxxxxxxxxx>
>
> This was found by coccicheck:
> ./arch/arm/mach-omap2/display.c, 272, 1-7, ERROR missing put_device;
> call of_find_device_by_node on line 258, but without a corresponding
> object release within this function.
>
> Move the put_device() call before the if judgment.

Thanks applying into omap-for-v5.17/fixes-not-urgent.

Tony