public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Dirk Behme <dirk.behme@de.bosch.com>
To: linux-omap-open-source@linux.omap.com
Subject: [PATCH] Fix clk_get_usecount() warning
Date: Tue, 17 Jan 2006 19:44:40 +0100	[thread overview]
Message-ID: <43CD3B18.1010803@de.bosch.com> (raw)

[-- 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 --]



             reply	other threads:[~2006-01-17 18:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-17 18:44 Dirk Behme [this message]
2006-01-20 19:01 ` [PATCH] Fix clk_get_usecount() warning Tony Lindgren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43CD3B18.1010803@de.bosch.com \
    --to=dirk.behme@de.bosch.com \
    --cc=linux-omap-open-source@linux.omap.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox