From patchwork Thu Aug 4 10:29:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Burton X-Patchwork-Id: 655730 X-Patchwork-Delegate: daniel.schwierzeck@googlemail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3s4mTJ730xz9sD5 for ; Thu, 4 Aug 2016 20:32:04 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 605B04B811; Thu, 4 Aug 2016 12:32:03 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9Mi1qzn2XkQr; Thu, 4 Aug 2016 12:32:00 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CB60B4B801; Thu, 4 Aug 2016 12:31:25 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 99BAB4B698 for ; Thu, 4 Aug 2016 12:30:29 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ktJUc5z-WeWl for ; Thu, 4 Aug 2016 12:30:28 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mailapp01.imgtec.com (mailapp01.imgtec.com [195.59.15.196]) by theia.denx.de (Postfix) with ESMTP id 7D8D54A03A for ; Thu, 4 Aug 2016 12:30:25 +0200 (CEST) Received: from HHMAIL01.hh.imgtec.org (unknown [10.100.10.19]) by Forcepoint Email with ESMTPS id 46327F939B279; Thu, 4 Aug 2016 11:30:11 +0100 (IST) Received: from localhost (10.100.200.86) by HHMAIL01.hh.imgtec.org (10.100.10.21) with Microsoft SMTP Server (TLS) id 14.3.294.0; Thu, 4 Aug 2016 11:30:13 +0100 From: Paul Burton To: , Daniel Schwierzeck Date: Thu, 4 Aug 2016 11:29:31 +0100 Message-ID: <20160804102942.9755-2-paul.burton@imgtec.com> X-Mailer: git-send-email 2.9.2 In-Reply-To: <20160804102942.9755-1-paul.burton@imgtec.com> References: <20160804102942.9755-1-paul.burton@imgtec.com> MIME-Version: 1.0 X-Originating-IP: [10.100.200.86] Cc: Stephen Warren Subject: [U-Boot] [PATCH v6 01/12] clk: Use dummy clk_get_by_* functions when CONFIG_CLK is disabled X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" The implementations of clk_get_by_index & clk_get_by_name are only available when CONFIG_CLK is enabled. Provide the dummies when this is not the case in order to avoid build failures. Signed-off-by: Paul Burton Reviewed-by: Simon Glass --- Changes in v6: - New patch Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None include/clk.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/clk.h b/include/clk.h index 161bc28..27b1d2c 100644 --- a/include/clk.h +++ b/include/clk.h @@ -59,7 +59,7 @@ struct clk { unsigned long id; }; -#if CONFIG_IS_ENABLED(OF_CONTROL) +#if CONFIG_IS_ENABLED(OF_CONTROL) && CONFIG_IS_ENABLED(CLK) struct phandle_2_cell; int clk_get_by_index_platdata(struct udevice *dev, int index, struct phandle_2_cell *cells, struct clk *clk);