[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-id: <1479099731-28108-17-git-send-email-pankaj.dubey@samsung.com>
Date: Mon, 14 Nov 2016 10:32:11 +0530
From: Pankaj Dubey <pankaj.dubey@...sung.com>
To: linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Cc: rmk+kernel@...linux.org.uk, arnd@...db.de, horms@...ge.net.au,
magnus.damm@...il.com, geert+renesas@...der.be, vireshk@...nel.org,
shiraz.linux.kernel@...il.com, krzk@...nel.org,
thomas.ab@...sung.com, Pankaj Dubey <pankaj.dubey@...sung.com>,
Jun Nie <jun.nie@...aro.org>
Subject: [PATCH 16/16] ARM: zx: use generic API for enabling SCU
Now as we have of_scu_enable which takes care of mapping
scu base from DT, lets use it.
CC: Jun Nie <jun.nie@...aro.org>
Signed-off-by: Pankaj Dubey <pankaj.dubey@...sung.com>
---
arch/arm/mach-zx/platsmp.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/arch/arm/mach-zx/platsmp.c b/arch/arm/mach-zx/platsmp.c
index 0297f92..2788c34 100644
--- a/arch/arm/mach-zx/platsmp.c
+++ b/arch/arm/mach-zx/platsmp.c
@@ -44,13 +44,11 @@ static void __iomem *scu_base;
void __init zx_smp_prepare_cpus(unsigned int max_cpus)
{
struct device_node *np;
- unsigned long base = 0;
void __iomem *aonsysctrl_base;
void __iomem *sys_iram;
- base = scu_a9_get_base();
- scu_base = ioremap(base, SZ_256);
- if (!scu_base) {
+ scu_base = of_scu_get_base();
+ if (IS_ERR(scu_base)) {
pr_err("%s: failed to map scu\n", __func__);
return;
}
--
2.7.4
Powered by blists - more mailing lists