Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S938657AbcKNFCK (ORCPT ); Mon, 14 Nov 2016 00:02:10 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:51703 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935176AbcKNE7i (ORCPT ); Sun, 13 Nov 2016 23:59:38 -0500 X-AuditID: cbfee61a-f79916d0000062de-86-582944ac5c32 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 , Patrice Chotard Subject: [PATCH 06/16] ARM: STi: use generic API for enabling SCU Date: Mon, 14 Nov 2016 10:32:01 +0530 Message-id: <1479099731-28108-7-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+NgFlrAIsWRmVeSWpSXmKPExsVy+t9jQd01LpoRBp33zC3+TjrGbjF39iRG i+atXxktzp/fwG6x6fE1VovLu+awWTxY/ZbNYtHWL+wWc05cZbS41D+RyWL+t5OsFh3LGC02 PzjG5sDrcfnaRWaP378mMXpMPKvrsXPWXXaPTas62Tw2L6n36NuyitHj6Y+9zB5zfn5j8fi8 SS6AK8rNJiM1MSW1SCE1Lzk/JTMv3VYpNMRN10JJIS8xN9VWKULXNyRISaEsMacUyDMyQAMO zgHuwUr6dgluGdePN7IWzOWo+NZl0cD4lK2LkZNDQsBE4lTTVFYIW0ziwr31QHEuDiGBWYwS d86uZgdJCAn8ZJTY9oYLxGYT0JV48n4uM4gtIuAmcaOxgwmkgVlgOZPE5YvrWUASwgKOEgde 9oAVsQioSvzZshJsA6+Ah8T+tZNZILbJSdw81wlWwyngKTGn8wwbxDIPiec3rjNOYORdwMiw ilEitSC5oDgpPdcwL7Vcrzgxt7g0L10vOT93EyM4dp5J7WA8uMv9EKMAB6MSD+8BM80IIdbE suLK3EOMEhzMSiK8rjZAId6UxMqq1KL8+KLSnNTiQ4ymQIdNZJYSTc4HxnVeSbyhibmJubGB hbmlpYmRkjhv4+xn4UIC6YklqdmpqQWpRTB9TBycUg2MR+qytyTvDJ2374G7aFNN3I9mwZ1L de++d15jPc/4n7bxGTv+HVeYdMU/iS/gPRfqt+rLBdfFKuGHujLS2Orvz4k+XWo8q7qMYeOB FdY3rs6fnSLwy/j+pCV7Ux6oPfxQ9VHY+bpuwlKWRrnGQ6ePz7jU0fHl381/FxkuTl921dqk /f1GhVfWvEosxRmJhlrMRcWJALMbJRazAgAA X-MTR: 20000000000000000@CPGS Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1015 Lines: 36 Now as we have of_scu_enable which takes care of mapping scu base from DT, lets use it. CC: Patrice Chotard Signed-off-by: Pankaj Dubey --- arch/arm/mach-sti/platsmp.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/arch/arm/mach-sti/platsmp.c b/arch/arm/mach-sti/platsmp.c index ea5a227..0bc7ff8 100644 --- a/arch/arm/mach-sti/platsmp.c +++ b/arch/arm/mach-sti/platsmp.c @@ -99,19 +99,12 @@ static int sti_boot_secondary(unsigned int cpu, struct task_struct *idle) static void __init sti_smp_prepare_cpus(unsigned int max_cpus) { struct device_node *np; - void __iomem *scu_base; u32 __iomem *cpu_strt_ptr; u32 release_phys; int cpu; unsigned long entry_pa = virt_to_phys(sti_secondary_startup); - np = of_find_compatible_node(NULL, NULL, "arm,cortex-a9-scu"); - - if (np) { - scu_base = of_iomap(np, 0); - scu_enable(scu_base); - of_node_put(np); - } + of_scu_enable(); if (max_cpus <= 1) return; -- 2.7.4