]> git.baikalelectronics.ru Git - kernel.git/commit
OMAP2xxx clock: fix broken cpu_mask code
authorPaul Walmsley <paul@pwsan.com>
Fri, 24 Apr 2009 03:11:06 +0000 (21:11 -0600)
committerpaul <paul@twilight.(none)>
Fri, 24 Apr 2009 03:11:06 +0000 (21:11 -0600)
commitbbb13b0f83d2be0cbdf20228d32ac1d05db542c5
treec2ce118e98838115d742b162637779f13cd69683
parent8b5d2a9fb1583ae0630e7e5c07e708e54156a77f
OMAP2xxx clock: fix broken cpu_mask code

Commit ffd45a34376a56009fe81dd67d38573199d86588 breaks the OMAP2xxx
cpu_mask code, which causes OMAP2xxx to panic on boot.  Fix by
removing the cpu_mask auto variable and by changing CK_242X
and CK_243X to use RATE_IN_242X/RATE_IN_243X.

Resolves

<1>Unable to handle kernel NULL pointer dereference at virtual address 0000000c
<1>pgd = c0004000
<1>[0000000c] *pgd=00000000
Internal error: Oops: 5 [#1]
Modules linked in:
CPU: 0    Not tainted  (2.6.29-omap1 #32)
PC is at omap2_clk_set_parent+0x104/0x120
LR is at omap2_clk_set_parent+0x28/0x120

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Tested-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Cc: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-omap2/clock24xx.c