Commit 8a38aadc authored by Paul Walmsley's avatar Paul Walmsley Committed by Tony Lindgren

OMAP2 clock: associate clocks with clockdomains at startup

The OMAP2 clock code was missing code to associate clocks with clockdomains
at registration time; fix this.

Resolves "Unhandled fault: alignment exception (0x001) at 0xc02c1b4e" (address
may vary) panic during clock framework init on OMAP2.  The alignment error
was caused by an attempt to dereference a pointer to a string (1-byte aligned)
as if it were a pointer to a structure.

Thanks to Felipe Balbi <felipe.balbi@nokia.com> for originally reporting this
bug.
Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent d6daf8d8
...@@ -567,11 +567,13 @@ int __init omap2_clk_init(void) ...@@ -567,11 +567,13 @@ int __init omap2_clk_init(void)
if ((*clkp)->flags & CLOCK_IN_OMAP242X && cpu_is_omap2420()) { if ((*clkp)->flags & CLOCK_IN_OMAP242X && cpu_is_omap2420()) {
clk_register(*clkp); clk_register(*clkp);
omap2_init_clk_clkdm(*clkp);
continue; continue;
} }
if ((*clkp)->flags & CLOCK_IN_OMAP243X && cpu_is_omap2430()) { if ((*clkp)->flags & CLOCK_IN_OMAP243X && cpu_is_omap2430()) {
clk_register(*clkp); clk_register(*clkp);
omap2_init_clk_clkdm(*clkp);
continue; continue;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment