Commit 793788d7 authored by Yu Kuai's avatar Yu Kuai Committed by Greg Kroah-Hartman
Browse files

ARM: socfpga: PM: add missing put_device() call in socfpga_setup_ocram_self_refresh()



[ Upstream commit 3ad7b4e8 ]

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: 44fd8c7d ("ARM: socfpga: support suspend to ram")
Signed-off-by: default avatarYu Kuai <yukuai3@huawei.com>
Signed-off-by: default avatarDinh Nguyen <dinguyen@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 0e16025c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment