From: David Brownell
Buildfix:
CC sound/soc/omap/osk5912.o
sound/soc/omap/osk5912.c: In function 'osk_soc_init':
sound/soc/omap/osk5912.c:189: error: implicit declaration of function
'clk_get_usecount'
make[3]: *** [sound/soc/omap/osk5912.o] Error 1
There's no such (standard) clock interface.
Signed-off-by: David Brownell
---
There is currently such an interface in mainline; but there shouldn't
be ... which is why I'm sending this to the ASoC folk too (I think
those clock updates will hit in the 2.6.30 window).
Some of that OMAP1 clock code got hosed anyway; on top of many build
warnings, an oops in at least the OMAP tree:
asoc: tlv320aic23 <-> omap-mcbsp-dai-0 mapping ok
Unable to handle kernel NULL pointer dereference at virtual address 0014
pgd = c0004000
[0014] *pgd=
Internal error: Oops: 5 [#1] PREEMPT
Modules linked in:
CPU: 0Not tainted (2.6.29-rc7-omap1 #10)
PC is at clk_set_rate+0x60/0x90
LR is at omap1_set_ext_clk_rate+0x28/0x68
pc : []lr : []psr: 6093
sp : c1c21f08 ip : c1c21ed0 fp : c1c21f24
r10: 0001 r9 : r8 : c033eb20
r7 : c001a718 r6 : 8013 r5 : r4 : c0321abc
r3 : r2 : fefe0878 r1 : 0018 r0 : c0321abc
Flags: nZCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment kernel
Control: 0005317f Table: 10004000 DAC: 0017
Process swapper (pid: 1, stack limit = 0xc1c20268)
Stack: (0xc1c21f08 to 0xc1c22000)
1f00: c0776c24 c001a718 c1c21f3c c1c21f28
1f20: c001a7b4 c0031368 c001fb94 c1c21fb4 c1c21f40 c0025240 c001a728
1f40: c1c21f8e c032fa50 c1c4af00 c032fa50 0100 c06edfb8 c1c21f84 c1c21f68
1f60: c00dd070 c00dce10 c1c21f84 c1c49d00 c00dd174 c1c21f8e c1c21fb4 c1c21f88
1f80: c0078ae0 c00dd000 c1c21fac 36330e48 c001fb94
1fa0: c1c21fcc c1c21fb8 c00084b8 c00251f8 c033eb20
1fc0: c1c21fdc c1c21fd0 c00084f4 c00084ac c1c21ff4 c1c21fe0 c000889c c00084e4
1fe0: c1c21ff8 c004737c c0008868
Backtrace:
[] (clk_set_rate+0x0/0x90) from [] (osk_soc_init+0x9c/0x118)
r7:c001a718 r6: r5: r4:c0776c24
[] (osk_soc_init+0x0/0x118) from []
(__exception_text_end+0x58/0x190)
sound/soc/omap/osk5912.c | 12 ++--
1 file changed, 2 insertions(+), 10 deletions(-)
--- a/sound/soc/omap/osk5912.c
+++ b/sound/soc/omap/osk5912.c
@@ -186,13 +186,6 @@ static int __init osk_soc_init(void)
return -ENODEV;
}
- if (clk_get_usecount(tlv320aic23_mclk) > 0) {
- /* MCLK is already in use */
- printk(KERN_WARNING
- "MCLK in use at %d Hz. We change it to %d Hz\n",
- (uint) clk_get_rate(tlv320aic23_mclk), CODEC_CLOCK);
- }
-
/*
* Configure 12 MHz output on MCLK.
*/
@@ -205,9 +198,8 @@ static int __init osk_soc_init(void)
}
}
- printk(KERN_INFO "MCLK = %d [%d], usecount = %d\n",
- (uint) clk_get_rate(tlv320aic23_mclk), CODEC_CLOCK,
- clk_get_usecount(tlv320aic23_mclk));
+ printk(KERN_INFO "MCLK = %d [%d]\n",
+ (uint) clk_get_rate(tlv320aic23_mclk), CODEC_CLOCK);
return 0;
err1:
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html