From patchwork Mon Nov 14 05:02:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Dubey X-Patchwork-Id: 9426485 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id AA1A960484 for ; Mon, 14 Nov 2016 05:05:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 98633288B4 for ; Mon, 14 Nov 2016 05:05:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8A0A2288F7; Mon, 14 Nov 2016 05:05:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1E979288B4 for ; Mon, 14 Nov 2016 05:05:34 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c69Qt-0001gn-EJ; Mon, 14 Nov 2016 05:03:51 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c69NH-00064V-Gk for linux-arm-kernel@lists.infradead.org; Mon, 14 Nov 2016 05:00:11 +0000 Received: from epcpsbgm2new.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OGM02ONL8JKZM40@mailout4.samsung.com> for linux-arm-kernel@lists.infradead.org; Mon, 14 Nov 2016 13:59:44 +0900 (KST) X-AuditID: cbfee61b-f796f6d000004092-f8-582944c0a2fd Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id 79.66.16530.0C449285; Mon, 14 Nov 2016 13:59:44 +0900 (KST) Received: from pankaj.sisodomain.com ([107.108.83.125]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OGM009SR8IFBJ70@mmp2.samsung.com>; Mon, 14 Nov 2016 13:59:44 +0900 (KST) From: Pankaj Dubey To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161113_210007_870478_3600B04C X-CRM114-Status: GOOD ( 12.03 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew Lunn , arnd@arndb.de, geert+renesas@glider.be, vireshk@kernel.org, magnus.damm@gmail.com, krzk@kernel.org, rmk+kernel@armlinux.org.uk, horms@verge.net.au, thomas.ab@samsung.com, Pankaj Dubey , Gregory Clement , Sebastian Hesselbarth , shiraz.linux.kernel@gmail.com, Jason Cooper MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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)