OMAP4: clock: fix compile warning
authorPaul Walmsley <paul@pwsan.com>
Sun, 21 Aug 2011 06:28:56 +0000 (00:28 -0600)
committerPaul Walmsley <paul@pwsan.com>
Sun, 21 Aug 2011 06:28:56 +0000 (00:28 -0600)
commit450a37d2eca6ddf6ea8186f57a7531318df6e796
treeb4e9f6c24b880eda22b8bd488ff5a09fe6b250fa
parentbed8cad9593974a46de5c8aa3d2ee7c49c17182f
OMAP4: clock: fix compile warning

Fix the following compile warning:

arch/arm/mach-omap2/clock44xx_data.c: In function 'omap4xxx_clk_init':
arch/arm/mach-omap2/clock44xx_data.c:3371:6: warning: 'cpu_clkflg' may be used uninitialized in this function

The approach taken here is intended to work if omap4xxx_clk_init() is
converted into an initcall.

Thanks to Bjarne Steinsbo <bsteinsbo@gmail.com> for proposing another
approach.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Bjarne Steinsbo <bsteinsbo@gmail.com>
arch/arm/mach-omap2/clock44xx_data.c