]> git.baikalelectronics.ru Git - kernel.git/commit
OMAP2xxx clock: clk2xxx.c doesn't compile if CPUFREQ is enabled
authorFelipe Balbi <felipe.balbi@nokia.com>
Fri, 8 Jan 2010 22:23:15 +0000 (15:23 -0700)
committerPaul Walmsley <paul@pwsan.com>
Fri, 8 Jan 2010 22:23:15 +0000 (15:23 -0700)
commita3149d0662534055a6d1c519e2b0f1ebfc58bee3
treebacb97b631338e52af8c915a1333efff2b3460ff
parentccc3750ec06b44906f950be954caa4c7a5ee007e
OMAP2xxx clock: clk2xxx.c doesn't compile if CPUFREQ is enabled

if we enable CPUFREQ we can't build omap2 for two reasons,
one of them is fixed by the patch below.

It's failing because the __must_be_array() check in
ARRAY_SIZE() is failing and printing the following message:

arch/arm/mach-omap2/clock2xxx.c:453: error: negative width in bit-field '<anonymous>'

Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
[paul@pwsan.com: commit message updated; changed rate variable name]
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/clock2xxx.c