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: 2335721 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 5A8C03FD40 for ; Tue, 26 Mar 2013 11:00:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753643Ab3CZK7w (ORCPT ); Tue, 26 Mar 2013 06:59:52 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:40403 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753142Ab3CZK7v (ORCPT ); Tue, 26 Mar 2013 06:59:51 -0400 Received: by mail-pa0-f47.google.com with SMTP id bj3so1095540pad.34 for ; Tue, 26 Mar 2013 03:59:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=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=KjjMPiim7O86d+ndPw8JedOOyhiM1IPWmZzJJ3IlRLz6b0pHRXkq8hMEdHdqKjsyRA lLZVrz53DdFB0LS5PbuXZaG7pp6VQGY7z20jPmOTYSM/WN1P3pi03GcZtFl7snPVkjd6 JYJcff7YqXtBlPnX9chDT3dOLv1iQv1/QHLk8mtyKWwkz1cPMmw7l0CT/vujcBH9tai6 +31c2iyBxKc23m1OjTZbE9hkdZ8S830Dp07h7tW6joOljVSdJCW2jXi6pEbrD6dX8oj8 bZPMjofd08r0g/YpzcSdDg8GBSCKhJDyFYLcUrdfIOhDwizTNeAhzB0r2tEYo7Ejs4tp kPMA== 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: ALoCoQmBS3kxpSywrTMf8qQp6MH0m7u2acUDP3AuKi2tnhHgzyGv3lAoEpTrY7mW7DfRyoKfbZ7z Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org 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)