ARM: imx6: add missing put_device() call in imx6q_suspend_init()
authoryu kuai <yukuai3@huawei.com>
Thu, 4 Jun 2020 12:54:49 +0000 (20:54 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Jul 2020 06:17:23 +0000 (08:17 +0200)
commit9634cd8e87c93f6f12528d2b45405b05895c4f7e
tree402fa91616cb83a04a87617cfed4cdec74363f70
parent38bcc785c2eb67b22caca3ec4ac7ce08bcc65326
ARM: imx6: add missing put_device() call in imx6q_suspend_init()

[ Upstream commit 4845446036fc9c13f43b54a65c9b757c14f5141b ]

if of_find_device_by_node() succeed, imx6q_suspend_init() doesn't have a
corresponding put_device(). Thus add a jump target to fix the exception
handling for this function implementation.

Signed-off-by: yu kuai <yukuai3@huawei.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm/mach-imx/pm-imx6.c