]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
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)
committerDinh Nguyen <dinguyen@kernel.org>
Tue, 28 Jul 2020 18:57:36 +0000 (13:57 -0500)
commit3ad7b4e8f89d6bcc9887ca701cf2745a6aedb1a0
treebb9d2589639c25bef3c7c122f284552147558e8d
parent812f5501161151f3c3f4e15f7ef250fc1c3af6a4
ARM: socfpga: PM: add missing put_device() call in socfpga_setup_ocram_self_refresh()

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>
arch/arm/mach-socfpga/pm.c