diff options
Diffstat (limited to 'arch/arm/mach-imx')
-rw-r--r-- | arch/arm/mach-imx/pm-imx6.c | 11 |
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; } |