OMAP2xxx clock: set up clockdomain pointer in struct clk
authorPaul Walmsley <[email protected]>
Wed, 14 Oct 2009 22:40:37 +0000 (16:40 -0600)
committerpaul <paul@twilight.(none)>
Wed, 14 Oct 2009 22:40:37 +0000 (16:40 -0600)
clock24xx.c is missing a omap2_init_clk_clkdm() in its
omap2_clk_init() function.  Among other bad effects, this causes the
OMAP hwmod layer to oops on boot.

Thanks to Carlos Aguiar <[email protected]> and Stefano
Panella <[email protected]> for reporting this bug.  Thanks to Tony
Lindgren <[email protected]> for N800 booting advice.

Signed-off-by: Paul Walmsley <[email protected]>
Cc: Carlos Aguiar <[email protected]>
Cc: Stefano Panella <[email protected]>
Cc: Tony Lindgren <[email protected]>
arch/arm/mach-omap2/clock24xx.c

index bc5d3ac6661191e3eeb68ef2c2d0723688d337fd..e2dbedd581e8966fb97c762532cdc3657101aa93 100644 (file)
@@ -769,6 +769,7 @@ int __init omap2_clk_init(void)
                if (c->cpu & cpu_mask) {
                        clkdev_add(&c->lk);
                        clk_register(c->lk.clk);
+                       omap2_init_clk_clkdm(c->lk.clk);
                }
 
        /* Check the MPU rate set by bootloader */