ARM: socfpga: PM: add missing put_device() call in socfpga_setup_ocram_self_refresh()
authorYu Kuai <yukuai3@huawei.com>
Tue, 21 Jul 2020 13:45:51 +0000 (21:45 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Aug 2020 06:23:31 +0000 (08:23 +0200)
commit8a9324f267aac16e4603e51761cdb13293950f30
treea3772be6ba23861e34f3fc7702ad0014986d81d1
parent762ae8916c90a13cfafd39fba2677a66a9b4470b
ARM: socfpga: PM: add missing put_device() call in socfpga_setup_ocram_self_refresh()

[ Upstream commit 3ad7b4e8f89d6bcc9887ca701cf2745a6aedb1a0 ]

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

Fixes: 44fd8c7d4005 ("ARM: socfpga: support suspend to ram")
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm/mach-socfpga/pm.c