Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752907AbcKNFBI (ORCPT ); Mon, 14 Nov 2016 00:01:08 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:59862 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936372AbcKNE7y (ORCPT ); Sun, 13 Nov 2016 23:59:54 -0500 X-AuditID: cbfee61b-f796f6d000004092-f9-582944c22fc5 From: Pankaj Dubey To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: rmk+kernel@armlinux.org.uk, arnd@arndb.de, horms@verge.net.au, magnus.damm@gmail.com, geert+renesas@glider.be, vireshk@kernel.org, shiraz.linux.kernel@gmail.com, krzk@kernel.org, thomas.ab@samsung.com, Pankaj Dubey , Jun Nie Subject: [PATCH 16/16] ARM: zx: use generic API for enabling SCU Date: Mon, 14 Nov 2016 10:32:11 +0530 Message-id: <1479099731-28108-17-git-send-email-pankaj.dubey@samsung.com> X-Mailer: git-send-email 2.7.4 In-reply-to: <1479099731-28108-1-git-send-email-pankaj.dubey@samsung.com> References: <1479099731-28108-1-git-send-email-pankaj.dubey@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrIIsWRmVeSWpSXmKPExsVy+t9jQd1DLpoRBpMPCFn8nXSM3WLu7EmM Fs1bvzJaLHnykN3i/PkN7BabHl9jtbi8aw6bxYPVb9ksFm39wm5xqX8ik8X8bydZLTqWMVps fnCMzYHX4/K1i8wev39NYvSYeFbXY+esu+wem1Z1snncubaHzWPzknqPvi2rGD3m/PzG4vF5 k1wAV5SbTUZqYkpqkUJqXnJ+SmZeuq1SaIibroWSQl5ibqqtUoSub0iQkkJZYk4pkGdkgAYc nAPcg5X07RLcMvoOLGcu6GSveHngA0sD41PWLkZODgkBE4mbf4+wQNhiEhfurWcDsYUEZjFK 7Dtq3cXIBWT/ZJTYMecsWIJNQFfiyfu5zCC2iICbxI3GDiaQImaBmUwSJ9/0gE0VFnCQmDfn DJjNIqAqsXT3dCYQm1fAU+L4o0Z2iG1yEjfPdYIN4gSKz+k8A7XZQ+L5jeuMExh5FzAyrGKU SC1ILihOSs81ykst1ytOzC0uzUvXS87P3cQIjp5n0jsYD+9yP8QowMGoxMPbka8RIcSaWFZc mXuIUYKDWUmE19VGM0KINyWxsiq1KD++qDQntfgQoynQYROZpUST84GRnVcSb2hibmJubGBh bmlpYqQkzts4+1m4kEB6YklqdmpqQWoRTB8TB6dUA6OrV3OI3H7J6Qs2r7m76rRAJN/S++Uq sRtXpiT2fcv6IZq/8GydxWxl8ZavmW0bZqqV9usZBkusuNN765r1+fkbj3he/DnpceFk/mer RPVi4mdznXP1j42LMU0NWRtotkL4v1vWTNW1Two9j54qS/x0NKrgh+9cMYGXX2+2Wt9z2sPG IhDdpabEUpyRaKjFXFScCABgJc93tAIAAA== X-MTR: 20000000000000000@CPGS Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 872 Lines: 31 Now as we have of_scu_enable which takes care of mapping scu base from DT, lets use it. CC: Jun Nie Signed-off-by: Pankaj Dubey --- 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