From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dirk Behme Subject: [PATCH] Fix clk_get_usecount() warning Date: Tue, 17 Jan 2006 19:44:40 +0100 Message-ID: <43CD3B18.1010803@de.bosch.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------050800000304090802070006" Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-omap-open-source-bounces@linux.omap.com Errors-To: linux-omap-open-source-bounces@linux.omap.com To: linux-omap-open-source@linux.omap.com List-Id: linux-omap@vger.kernel.org This is a multi-part message in MIME format. --------------050800000304090802070006 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit ARM: OMAP: Fix warning about missing clk_get_usecount() declaration arch/arm/plat-omap/clock.c exports clk_get_usecount(), but linux/clk.h doesn't contain the prototype for it. Add it to asm/arch/clock.h and add clock.h to omap-audio-aic23.c. sound/oss/omap-audio-aic23.c: In function `audio_aic23_init': sound/oss/omap-audio-aic23.c:680: warning: implicit declaration of function `clk_get_usecount' Signed-off-by: Dirk Behme --------------050800000304090802070006 Content-Type: text/plain; name="clk_get_usecount.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="clk_get_usecount.patch" --- ./include/asm-arm/arch-omap/clock.h_orig 2006-01-17 18:52:15.414780616 +0100 +++ ./include/asm-arm/arch-omap/clock.h 2006-01-17 19:10:53.619787616 +0100 @@ -57,6 +57,7 @@ extern void propagate_rate(struct clk *c extern void followparent_recalc(struct clk * clk); extern void clk_allow_idle(struct clk *clk); extern void clk_deny_idle(struct clk *clk); +extern int clk_get_usecount(struct clk *clk); /* Clock flags */ #define RATE_CKCTL (1 << 0) /* Main fixed ratio clocks */ --- ./sound/oss/omap-audio-aic23.c_orig 2006-01-17 18:40:00.000000000 +0100 +++ ./sound/oss/omap-audio-aic23.c 2006-01-17 18:56:08.970274784 +0100 @@ -47,6 +47,7 @@ #include #include #include +#include #include "omap-audio.h" #include "omap-audio-dma-intfc.h" --------------050800000304090802070006 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --------------050800000304090802070006--