Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S938961AbcKNFBk (ORCPT ); Mon, 14 Nov 2016 00:01:40 -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 S936131AbcKNE7v (ORCPT ); Sun, 13 Nov 2016 23:59:51 -0500 X-AuditID: cbfee61b-f796f6d000004092-f8-582944c0a2fd 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 , Jason Cooper , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth Subject: [PATCH 15/16] ARM: mvebu: use generic API for enabling SCU Date: Mon, 14 Nov 2016 10:32:10 +0530 Message-id: <1479099731-28108-16-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+NgFtrJIsWRmVeSWpSXmKPExsVy+t9jQd0DLpoRBlefC1ucv3uI2eLvpGPs FnNnT2K02NT2ltGieetXRovGJZdZLM6f38BusenxNVaLy7vmsFk8WP2WzWLR1i/sFpf6JzJZ vP/paDH/20lWi45ljBabHxxjcxDwuHztIrPH71+TGD2ebLrI6DHxrK7Hzll32T02repk82g4 cJ7FY/OSeo+dOz4zefRtWcXoMefnNxaPz5vkAnii3GwyUhNTUosUUvOS81My89JtlUJD3HQt lBTyEnNTbZUidH1DgpQUyhJzSoE8IwM04OAc4B6spG+X4Jax7ck+5oLJHBVrln1ibmB8x9bF yMkhIWAisXNBOyOELSZx4d56sLiQwCxGiV07nLsYuYDsn4wS/Q+fghWxCehKPHk/lxnEFhFw k7jR2MEEUsQssJlZ4vreBlaQhLCAs8TRWZPYQWwWAVWJ2Y9Wg03lFfCUeLZsKdRmOYmb5zrB BnECxed0noHa7CHx/MZ1xgmMvAsYGVYxSqQWJBcUJ6XnGuWllusVJ+YWl+al6yXn525iBEfb M+kdjId3uR9iFOBgVOLh7cjXiBBiTSwrrsw9xCjBwawkwutqoxkhxJuSWFmVWpQfX1Sak1p8 iNEU6LCJzFKiyfnARJBXEm9oYm5ibmxgYW5paWKkJM7bOPtZuJBAemJJanZqakFqEUwfEwen VANjlci0GEM5fr87ZmvuXAyKsD325+HkuxyX6hdHBuUfUspdH3Nd8ZfCK4e23/saLmV8v/Vl stnh1KqO0CXq3ZobmP2ELNQDbzi9PrlBL6tol3HqxaVNwdldDZKL9U+8ejNZ2PYis9eawoM3 3qTZKdk1LOLPs57I/T93Ssf+xgju+Vx2ysGTSncqsRRnJBpqMRcVJwIAPmv8J8wCAAA= X-MTR: 20000000000000000@CPGS Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1007 Lines: 34 Now as we have of_scu_enable which takes care of mapping scu base from DT, lets use it. CC: Jason Cooper CC: Andrew Lunn CC: Gregory Clement CC: Sebastian Hesselbarth Signed-off-by: Pankaj Dubey --- arch/arm/mach-mvebu/board-v7.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-mvebu/board-v7.c b/arch/arm/mach-mvebu/board-v7.c index ccca951..d7014a3 100644 --- a/arch/arm/mach-mvebu/board-v7.c +++ b/arch/arm/mach-mvebu/board-v7.c @@ -41,13 +41,9 @@ static void __iomem *scu_base; */ static void __init mvebu_scu_enable(void) { - struct device_node *np = - of_find_compatible_node(NULL, NULL, "arm,cortex-a9-scu"); - if (np) { - scu_base = of_iomap(np, 0); + scu_base = of_scu_get_base(); + if (!IS_ERR(scu_base)) scu_enable(scu_base); - of_node_put(np); - } } void __iomem *mvebu_get_scu_base(void) -- 2.7.4