From patchwork Sat Nov 24 09:53:30 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Abraham X-Patchwork-Id: 1798251 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 3541FDF230 for ; Sat, 24 Nov 2012 09:27:32 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TcByB-0008Iv-JL; Sat, 24 Nov 2012 09:24:15 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TcBy6-0008Ib-N6 for linux-arm-kernel@lists.infradead.org; Sat, 24 Nov 2012 09:24:12 +0000 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MDZ0042SJG6XDC0@mailout1.samsung.com> for linux-arm-kernel@lists.infradead.org; Sat, 24 Nov 2012 18:24:06 +0900 (KST) X-AuditID: cbfee61a-b7fa66d0000004cf-ef-50b092351048 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 35.F9.01231.53290B05; Sat, 24 Nov 2012 18:24:05 +0900 (KST) Received: from localhost.localdomain ([107.108.73.37]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MDZ005U9JG02A00@mmp2.samsung.com> for linux-arm-kernel@lists.infradead.org; Sat, 24 Nov 2012 18:24:05 +0900 (KST) From: Thomas Abraham To: linux-samsung-soc@vger.kernel.org Subject: [PATCH] ARM: Exynos5: fix clock initialization for exynos5250 Date: Sat, 24 Nov 2012 15:23:30 +0530 Message-id: <1353750810-21953-1-git-send-email-thomas.abraham@linaro.org> X-Mailer: git-send-email 1.6.6.rc2 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrBJMWRmVeSWpSXmKPExsVy+t9jQV3TSRsCDB5ftLbY9PgaqwOjx+Yl 9QGMUVw2Kak5mWWpRfp2CVwZq04eYy6Yzlbx9ZN7A+Ni1i5GTg4JAROJprPn2CFsMYkL99az dTFycQgJTGeUmHZ2MiuEs55J4sHDXjaQKjYBA4lHC9+BdYgIqEp8blsAZjML2EvM+93GCGIL C7hJPPt3kAnEZgGqeT9vP0sXIwcHr4CnxK+7xRDLlCQ29B5lmsDIvYCRYRWjaGpBckFxUnqu oV5xYm5xaV66XnJ+7iZGsP+eSe1gXNlgcYhRgINRiYf3wNX1AUKsiWXFlbmHGCU4mJVEeKf1 bQgQ4k1JrKxKLcqPLyrNSS0+xCjNwaIkztvskRIgJJCeWJKanZpakFoEk2Xi4JRqYNxkvVBD 6Uj900jb7HeNmw1e/LrDrL2+TSsycvv5detvzxStTnyu+F/x29zHb8uLluYvuRLEVzI5SWLH jw0bGV//vV12MDX0x6y8xKT44Np3hmq6CXFPtRZGv1t7zWDZxK+z68PLW1dFbHjzdPbjlCtM 0ivWbPo/u/24/cK1c1hFRKuOLOT85PdUiaU4I9FQi7moOBEA2Hi9ONsBAAA= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121124_042411_067020_8248ED0A X-CRM114-Status: GOOD ( 10.45 ) X-Spam-Score: -6.9 (------) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-6.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [203.254.224.24 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: kgene.kim@samsung.com, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The machine compatible value cannot be checked in exynos5_dt_map_io function since the tree is not unflattened yet. Fix this by using soc_is_exynos5250 macro. Signed-off-by: Thomas Abraham --- arch/arm/mach-exynos/mach-exynos5-dt.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-exynos/mach-exynos5-dt.c b/arch/arm/mach-exynos/mach-exynos5-dt.c index 77010f8..845d8e2 100644 --- a/arch/arm/mach-exynos/mach-exynos5-dt.c +++ b/arch/arm/mach-exynos/mach-exynos5-dt.c @@ -117,7 +117,7 @@ static void __init exynos5_dt_map_io(void) { exynos_init_io(NULL, 0); - if (of_machine_is_compatible("samsung,exynos5250")) + if (soc_is_exynos5250()) s3c24xx_init_clocks(24000000); }