Skip to content
Commit 34596ba3 authored by Ye Guojin's avatar Ye Guojin Committed by Tony Lindgren
Browse files

ARM: OMAP2+: adjust the location of put_device() call in omapdss_init_of



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.

Reported-by: default avatarZeal Robot <zealci@zte.com.cn>
Signed-off-by: default avatarYe Guojin <ye.guojin@zte.com.cn>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 80c469a0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment