From patchwork Mon Aug 15 19:04:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_Bie=C3=9Fmann?= X-Patchwork-Id: 659378 X-Patchwork-Delegate: andreas.biessmann@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 3sClL91C9wz9t1S for ; Tue, 16 Aug 2016 05:05:04 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id BFAA9B3809; Mon, 15 Aug 2016 21:04:56 +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 hedDRYDhwhAT; Mon, 15 Aug 2016 21:04:56 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CEBE3A7521; Mon, 15 Aug 2016 21:04:55 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id BD255A7521 for ; Mon, 15 Aug 2016 21:04:52 +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 oOlMmQwMppBv for ; Mon, 15 Aug 2016 21:04:52 +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 storm.biessmann.org (storm.biessmann.org [134.0.27.137]) by theia.denx.de (Postfix) with ESMTP id 7DC56A7519 for ; Mon, 15 Aug 2016 21:04:48 +0200 (CEST) X-Spam-Flag: NO X-Spam-Score: -1.996 X-Spam-Level: X-Spam-Status: No, score=-1.996 tagged_above=-9999 required=6.31 tests=[ALL_TRUSTED=-1, RP_MATCHES_RCVD=-0.996] autolearn=disabled Received: from mba.int.er.biessmann.org (er.biessmann.org [80.81.14.92]) by storm.biessmann.org (Postfix) with ESMTPSA id 3109EA2620; Mon, 15 Aug 2016 21:04:46 +0200 (CEST) Received: from mba.int.er.biessmann.org (localhost [127.0.0.1]) by mba.int.er.biessmann.org (Postfix) with ESMTP id 380A3510201; Mon, 15 Aug 2016 21:04:44 +0200 (CEST) From: =?UTF-8?q?Andreas=20Bie=C3=9Fmann?= To: U-Boot ML Date: Mon, 15 Aug 2016 21:04:41 +0200 Message-Id: <1471287881-5218-1-git-send-email-andreas@biessmann.org> X-Mailer: git-send-email 2.7.4 (Apple Git-66) MIME-Version: 1.0 Cc: Stephen Warren Subject: [U-Boot] [PATCH] clk.h: inline clk_get_by_name() 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" Fix compile warning for non OF_CONTROL builds: ---8<--- In file included from /Volumes/devel/u-boot/drivers/gpio/atmel_pio4.c:10:0: /Volumes/devel/u-boot/include/clk.h:107:12: warning: 'clk_get_by_name' defined but not used [-Wunused-function] --->8--- Signed-off-by: Andreas Bießmann Acked-by: Stephen Warren Acked-by: Simon Glass --- include/clk.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/clk.h b/include/clk.h index 161bc28..dc18b03 100644 --- a/include/clk.h +++ b/include/clk.h @@ -104,7 +104,7 @@ static inline int clk_get_by_index(struct udevice *dev, int index, return -ENOSYS; } -static int clk_get_by_name(struct udevice *dev, const char *name, +static inline int clk_get_by_name(struct udevice *dev, const char *name, struct clk *clk) { return -ENOSYS;