summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/io.c
diff options
context:
space:
mode:
authorKevin Hilman <khilman@deeprootsystems.com>2010-03-10 18:16:30 +0100
committerTony Lindgren <tony@atomide.com>2010-03-12 00:55:43 +0100
commit54c44fb7df4774280a2deb4ba191cbab84602413 (patch)
tree354e97afdd1778ec21781971bf1369119ddbd9ed /arch/arm/mach-omap2/io.c
parentomap3: pandora: add missing i2c3 board_info (diff)
downloadlinux-54c44fb7df4774280a2deb4ba191cbab84602413.tar.xz
linux-54c44fb7df4774280a2deb4ba191cbab84602413.zip
OMAP2: cpu_is_omap2*: fix compile-time removal of unused code
Currently if omap2420 is defined but not omap2430, cpu_is_omap2430() is still defined as a macro, instead of #define'd to zero. This results in conditional cpu_is_omap2430() code still being compiled, and leads to possible compile/link errors. In particular for hwmod init. To fix, add extra #ifdefs to CPU check macros to ensure that the is_omap* macros are zero for each OMAP2 if they are not configured into the kernel. Tested-by: Santosh Shilimkar <santosh.shilimkar@ti.com> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/io.c')
0 files changed, 0 insertions, 0 deletions