]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
ARM: OMAP2+: Add missing put_device() call in omapdss_init_of()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 9 Nov 2019 16:19:35 +0000 (17:19 +0100)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 6 Mar 2020 07:25:26 +0000 (02:25 -0500)
commitf005cdefd880df022433211847feef9ae6a009eb
treed3f929eac1f092e00ec09abdd370429936f1b1ef
parent73a8f0f799828741ab211f6a64d1078a4dc85f1d
ARM: OMAP2+: Add missing put_device() call in omapdss_init_of()

BugLink: https://bugs.launchpad.net/bugs/1864060
commit 0b491904f053e41685162af5c5411b85b18c97a7 upstream.

A coccicheck run provided information like the following.

arch/arm/mach-omap2/display.c:268:2-8: ERROR: missing put_device;
call of_find_device_by_node on line 258, but without a corresponding
object release within this function.

Generated by: scripts/coccinelle/free/put_device.cocci

Thus add the missed function call to fix the exception handling for
this function implementation.

Fixes: e0c827aca0730b51f38081aa4e8ecf0912aab55f ("drm/omap: Populate DSS children in omapdss driver")
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
arch/arm/mach-omap2/display.c