From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754007Ab3KGDN6 (ORCPT ); Wed, 6 Nov 2013 22:13:58 -0500 Received: from mx0a-0016f401.pphosted.com ([67.231.148.174]:22882 "EHLO mx0a-0016f401.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752817Ab3KGDNx (ORCPT ); Wed, 6 Nov 2013 22:13:53 -0500 From: Jisheng Zhang To: , , , , CC: , , Jisheng Zhang Subject: [PATCH 4/4] arm: socfgpa: make use of common scu_a9_get_base() interface Date: Thu, 7 Nov 2013 11:08:40 +0800 Message-ID: <1383793720-4643-8-git-send-email-jszhang@marvell.com> X-Mailer: git-send-email 1.8.4.2 In-Reply-To: <1383793720-4643-1-git-send-email-jszhang@marvell.com> References: <1383793720-4643-1-git-send-email-jszhang@marvell.com> MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.10.8794,1.0.431,0.0.0000 definitions=2013-11-07_01:2013-11-06,2013-11-07,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1305240000 definitions=main-1311060260 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Make use of common scu_a9_get_base() and delete the comment since the interface is self commented. Signed-off-by: Jisheng Zhang --- arch/arm/mach-socfpga/socfpga.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-socfpga/socfpga.c b/arch/arm/mach-socfpga/socfpga.c index bfce964..b695887 100644 --- a/arch/arm/mach-socfpga/socfpga.c +++ b/arch/arm/mach-socfpga/socfpga.c @@ -24,6 +24,7 @@ #include #include #include +#include #include "core.h" @@ -51,8 +52,7 @@ static void __init socfpga_scu_map_io(void) { unsigned long base; - /* Get SCU base */ - asm("mrc p15, 4, %0, c15, c0, 0" : "=r" (base)); + base = scu_a9_get_base(); scu_io_desc.pfn = __phys_to_pfn(base); iotable_init(&scu_io_desc, 1); -- 1.8.4.2