public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix clk_get_usecount() warning
@ 2006-01-17 18:44 Dirk Behme
  2006-01-20 19:01 ` Tony Lindgren
  0 siblings, 1 reply; 2+ messages in thread
From: Dirk Behme @ 2006-01-17 18:44 UTC (permalink / raw)
  To: linux-omap-open-source

[-- Attachment #1: Type: text/plain, Size: 461 bytes --]


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 <dirk.behme_at_de.bosch.com>



[-- Attachment #2: clk_get_usecount.patch --]
[-- Type: text/plain, Size: 831 bytes --]

--- ./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 <asm/arch/mcbsp.h>
 #include <asm/arch/fpga.h>
 #include <asm/arch/aic23.h>
+#include <asm/arch/clock.h>
 
 #include "omap-audio.h"
 #include "omap-audio-dma-intfc.h"



[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-01-20 19:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-17 18:44 [PATCH] Fix clk_get_usecount() warning Dirk Behme
2006-01-20 19:01 ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox