summaryrefslogtreecommitdiff
path: root/arch/arm/mach-imx
diff options
context:
space:
mode:
authorJacky Bai <ping.bai@nxp.com>2020-04-09 15:58:50 +0800
committerDong Aisheng <aisheng.dong@nxp.com>2021-11-02 16:22:58 +0800
commitdd641f80b1f4998d8b2aa20d7b26a9a3fce06820 (patch)
treedb568043b4eed900b3ab3478b2e02435dca31d72 /arch/arm/mach-imx
parent8e03d01ef8c6a887f576e894167f1888426ca536 (diff)
MLK-23763 arm: imx: Remove the redundant code in pm-imx6
remove the unused node define & related code. Signed-off-by: Jacky Bai <ping.bai@nxp.com> Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
Diffstat (limited to 'arch/arm/mach-imx')
-rw-r--r--arch/arm/mach-imx/pm-imx6.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/arch/arm/mach-imx/pm-imx6.c b/arch/arm/mach-imx/pm-imx6.c
index 6f62ed934830..f544312cc0d7 100644
--- a/arch/arm/mach-imx/pm-imx6.c
+++ b/arch/arm/mach-imx/pm-imx6.c
@@ -1063,7 +1063,6 @@ void __init imx6_pm_map_io(void)
static int __init imx6q_suspend_init(const struct imx6_pm_socdata *socdata)
{
- struct device_node *node;
struct imx6_cpu_pm_info *pm_info;
unsigned long iram_paddr;
int i, ret = 0;
@@ -1077,11 +1076,8 @@ static int __init imx6q_suspend_init(const struct imx6_pm_socdata *socdata)
return -EINVAL;
}
- if (psci_ops.cpu_suspend) {
- /* TODO: seems not needed */
- /* of_node_put(node); */
+ if (psci_ops.cpu_suspend)
return ret;
- }
/*
* 16KB is allocated for IRAM TLB, but only up 8k is for kernel TLB,
@@ -1227,11 +1223,6 @@ static int __init imx6q_suspend_init(const struct imx6_pm_socdata *socdata)
&imx6_suspend,
MX6Q_SUSPEND_OCRAM_SIZE - sizeof(*pm_info));
- goto put_node;
-
-put_node:
- of_node_put(node);
-
return ret;
}