summaryrefslogtreecommitdiff
path: root/arch/arm/mach-rockchip/pm.c
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2019-06-17 15:14:24 +0300
committerOlof Johansson <olof@lixom.net>2019-06-17 15:14:24 +0300
commit4ab3a3e7e8ba63739bd2b1f6a0372b9534449078 (patch)
tree7f1ebbd44a887e670387bad31a528f8b8e6bf04c /arch/arm/mach-rockchip/pm.c
parent449c1cd29777c5d6bf29647871bef6b93d60bb0b (diff)
parentc2af88f1a0cdf4cbe94b51fd93e52a3f55606a13 (diff)
downloadlinux-4ab3a3e7e8ba63739bd2b1f6a0372b9534449078.tar.xz
Merge tag 'v5.3-rockchip-soc32-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip into arm/soc
Another missing of_node_put * tag 'v5.3-rockchip-soc32-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip: ARM: rockchip: fix missing of_node_put calls in smp code Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/mach-rockchip/pm.c')
-rw-r--r--arch/arm/mach-rockchip/pm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-rockchip/pm.c b/arch/arm/mach-rockchip/pm.c
index 744b5b332e42..87389d9456b9 100644
--- a/arch/arm/mach-rockchip/pm.c
+++ b/arch/arm/mach-rockchip/pm.c
@@ -257,12 +257,14 @@ static int __init rk3288_suspend_init(struct device_node *np)
rk3288_bootram_base = of_iomap(sram_np, 0);
if (!rk3288_bootram_base) {
pr_err("%s: could not map bootram base\n", __func__);
+ of_node_put(sram_np);
return -ENOMEM;
}
ret = of_address_to_resource(sram_np, 0, &res);
if (ret) {
pr_err("%s: could not get bootram phy addr\n", __func__);
+ of_node_put(sram_np);
return ret;
}
rk3288_bootram_phy = res.start;