From patchwork Tue Mar 26 15:04:00 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kim Kukjin X-Patchwork-Id: 2391641 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id BC096DF25A for ; Thu, 4 Apr 2013 10:32:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759427Ab3DDKcL (ORCPT ); Thu, 4 Apr 2013 06:32:11 -0400 Received: from mail-pb0-f47.google.com ([209.85.160.47]:41559 "EHLO mail-pb0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759426Ab3DDKcK (ORCPT ); Thu, 4 Apr 2013 06:32:10 -0400 Received: by mail-pb0-f47.google.com with SMTP id rq13so1366521pbb.20 for ; Thu, 04 Apr 2013 03:32:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer; bh=1KxAmUPipPJq1RGUJ1pWtqvvG0J4KlEHSgtF7OBrndw=; b=UfOkTLXfhCTEcIR/YLQvdzLqniExM0N4UHnpST+Fzc/JO98/MOjcMTQ+Xjp8IHxDzD rd/d70cadDTRyRB8S+2a13/x8ny+ja0H3lC0CLaoDtF9BMTyWjQnQ/OTqSBLQrptF6N9 3fJHz+GcKds7WTHVfQx/4i9/aO1hjduaG5s35fbSNUEwFkh8rx0QH470H3aNGDL6UHOX LrirAMTdJXSiJZOmixw4VPyIEUNO1hJ4IqPTwyy64rIE4TnCq1BXEf7QYgWtjEunta/j SZjUsYnDpQvnSy0q0RasZVuGdAiQBXe+7KxEJYJPq5ceAsgogvfQ2F3sg99l1GVdBnvC nQew== X-Received: by 10.66.179.238 with SMTP id dj14mr8813498pac.68.1365071528505; Thu, 04 Apr 2013 03:32:08 -0700 (PDT) Received: from localhost.localdomain ([121.136.168.198]) by mx.google.com with ESMTPS id pa2sm10024724pac.9.2013.04.04.03.32.05 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 04 Apr 2013 03:32:07 -0700 (PDT) From: Kukjin Kim To: linux-samsung-soc@vger.kernel.org Cc: Thomas Abraham , Kukjin Kim Subject: [PATCH] ARM: EXYNOS: fix compilation error introduced due to common clock migration Date: Wed, 27 Mar 2013 00:04:00 +0900 Message-Id: <1364310240-3394-1-git-send-email-kgene.kim@samsung.com> X-Mailer: git-send-email 1.7.4.4 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org From: Thomas Abraham The functions exynos4_clk_init and exynos4_clk_register_fixed_ext are applicable only on Exynos4 non-dt platforms. But when building Exynos5 platforms without including Exynos4 platforms, the following errors show up. arch/arm/mach-exynos/built-in.o: In function `exynos_init_time': arch/arm/mach-exynos/common.c:446: undefined reference to `exynos4_clk_init' arch/arm/mach-exynos/common.c:447: undefined reference to `exynos4_clk_register_fixed_ext' Fix this compilation errors by marking these calls as Exynos4 specific. Signed-off-by: Thomas Abraham Signed-off-by: Kukjin Kim --- arch/arm/mach-exynos/common.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-exynos/common.c b/arch/arm/mach-exynos/common.c index 9cd857e..a8570bf 100644 --- a/arch/arm/mach-exynos/common.c +++ b/arch/arm/mach-exynos/common.c @@ -443,8 +443,10 @@ void __init exynos_init_time(void) #endif } else { /* todo: remove after migrating legacy E4 platforms to dt */ +#ifdef CONFIG_ARCH_EXYNOS4 exynos4_clk_init(NULL); exynos4_clk_register_fixed_ext(xxti_f, xusbxti_f); +#endif mct_init(); } }