]> git.baikalelectronics.ru Git - 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)
commite0566782338453e2c3de0c17e4f7654e63f9ecbb
treebb9d2589639c25bef3c7c122f284552147558e8d
parent10b1c71a3e6e9b918e4e63b62552df083b1f2e90
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: 9180bc57e573 ("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