From patchwork Tue Mar 26 10:48:18 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 15664 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id D77AC23E75 for ; Tue, 26 Mar 2013 10:59:53 +0000 (UTC) Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by fiordland.canonical.com (Postfix) with ESMTP id 7585FA198E1 for ; Tue, 26 Mar 2013 10:59:53 +0000 (UTC) Received: by mail-vc0-f181.google.com with SMTP id hv10so5338008vcb.26 for ; Tue, 26 Mar 2013 03:59:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :mime-version:content-type:content-transfer-encoding :x-gm-message-state; bh=qA2H9P4pwTisQrsG3xhnRtHIHrW3kl2Pto13wN5lJ9o=; b=DFEGupcl9d0ADWlBVFI39s8wQHPCwBwVt70egCWK221d2D4+ip+loSiQn16P2YvblX 31P24PSOVE9xTHBcTP0S0hGJvvTZCEfDHMA0T8/ThJRBwNllfHDhrXkZBLRAR7yAu6Wg yveBc1CwuJOIbIjFIAJT4ObzHQ9+bboQvWTBXzv4asMZqPgOwP6hHsPdR98mFl9qz+/1 dJ1zD4HpMy2+dJxzHarz0fhpoxiWbPYQVqYHgn/2s+JugN3Yk/MlskMyyaxgDUC5E6P9 u4ijC6kEpLUhFd17RQavOtBXb1l5J7qS6OIeSjFRYmO3qdv1Zi+p67bFPvD4B0rKfN7U 6NmQ== X-Received: by 10.220.153.143 with SMTP id k15mr19039442vcw.33.1364295592919; Tue, 26 Mar 2013 03:59:52 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.59.4.204 with SMTP id cg12csp65517ved; Tue, 26 Mar 2013 03:59:52 -0700 (PDT) X-Received: by 10.68.117.3 with SMTP id ka3mr22204234pbb.81.1364295591842; Tue, 26 Mar 2013 03:59:51 -0700 (PDT) Received: from mail-pb0-f44.google.com (mail-pb0-f44.google.com [209.85.160.44]) by mx.google.com with ESMTPS id zo5si16999321pbc.222.2013.03.26.03.59.51 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 26 Mar 2013 03:59:51 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.44 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.44; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.44 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by mail-pb0-f44.google.com with SMTP id wz17so1221772pbc.3 for ; Tue, 26 Mar 2013 03:59:51 -0700 (PDT) X-Received: by 10.66.146.232 with SMTP id tf8mr1444416pab.32.1364295591320; Tue, 26 Mar 2013 03:59:51 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id dl1sm17138258pbc.17.2013.03.26.03.59.48 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 26 Mar 2013 03:59:50 -0700 (PDT) From: Sachin Kamat To: linux-kernel@vger.kernel.org Cc: thomas.abraham@linaro.org, kgene.kim@samsung.com, linux-samsung-soc@vger.kernel.org, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 1/1] clk: samsung: Fix compilation error Date: Tue, 26 Mar 2013 16:18:18 +0530 Message-Id: <1364294898-22618-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQkX8n9ViqeFbl0zL50kXlEU7vtYIWXh6pt8VMDYFKTGFyaIOep2fk/ivEufoDFKgpu+lkeZ Fixes the below compilation error during non-dt build. drivers/clk/samsung/clk.c: In function ‘samsung_clk_of_register_fixed_ext’: drivers/clk/samsung/clk.c:252:2: error: implicit declaration of function ‘for_each_matching_node_and_match’ [-Werror=implicit-function-declaration] drivers/clk/samsung/clk.c:252:60: error: expected ‘;’ before ‘{’ token Signed-off-by: Sachin Kamat --- drivers/clk/samsung/clk.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/clk/samsung/clk.c b/drivers/clk/samsung/clk.c index 91d12f3..78615dd 100644 --- a/drivers/clk/samsung/clk.c +++ b/drivers/clk/samsung/clk.c @@ -239,6 +239,7 @@ void __init samsung_clk_register_gate(struct samsung_gate_clock *list, * obtain the clock speed of all external fixed clock sources from device * tree and register it */ +#ifdef CONFIG_OF void __init samsung_clk_of_register_fixed_ext( struct samsung_fixed_rate_clock *fixed_rate_clk, unsigned int nr_fixed_rate_clk, @@ -255,6 +256,7 @@ void __init samsung_clk_of_register_fixed_ext( } samsung_clk_register_fixed_rate(fixed_rate_clk, nr_fixed_rate_clk); } +#endif /* utility function to get the rate of a specified clock */ unsigned long _get_rate(const char *clk_name)