Fix clk_get_usecount() warning
PATCH 1/1 Fix clk_get_usecount() warning
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'
include/asm-arm/arch-omap/clock.h renamed from include/asm-arm/arch-omap/clock.h_orig +1 -0
@@ -57,6 +57,7 @@ extern void propagate_rate(struct clk *cextern 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 renamed from sound/oss/omap-audio-aic23.c_orig +1 -0
@@ -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"
Quoted 28 lines · Dirk Behme
ARM: OMAP: Fix warning about missing
clk_get_usecount()declaration
arch/arm/plat-omap/clock.cexportsclk_get_usecount(), butlinux/clk.hdoesn't contain the prototype for it. Add it toasm/arch/clock.hand addclock.htoomap-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>include/asm-arm/arch-omap/clock.h renamed from include/asm-arm/arch-omap/clock.h_orig +1
-0@@ -57,6 +57,7 @@ extern void propagate_rate(struct clk *cextern 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 line 53
Quoted 7 lines
sound/oss/omap-audio-aic23.c renamed from sound/oss/omap-audio-aic23.c_orig +1
-0@@ -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"
Thanks, pushing today.
Tony