]> git.baikalelectronics.ru Git - kernel.git/commit
OMAP: Fix linking error in twl-common.c for OMAP2/3/4 only builds
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Tue, 9 Aug 2011 12:36:50 +0000 (15:36 +0300)
committerTony Lindgren <tony@atomide.com>
Wed, 10 Aug 2011 09:09:19 +0000 (02:09 -0700)
commitb3de88b993d1cd788d38d9ddfae695620ebe6df5
treed08828eff708c360a18bbc9b29b7e55ff9c84c48
parent9e10edc900254f4f9daf9d38cac9f78166dcb7bd
OMAP: Fix linking error in twl-common.c for OMAP2/3/4 only builds

Commit 567f100 (OMAP4: Move common twl6030 configuration to twl-common)
caused compile failures for code for OMAP arch which is not selected by
the config.

Fixes issues like:
With CONFIG_ARCH_OMAP3=y and CONFIG_ARCH_OMAP4=n, I'm getting this:

arch/arm/mach-omap2/built-in.o:(.data+0xf99c): undefined reference to `omap4430_phy_init'
arch/arm/mach-omap2/built-in.o:(.data+0xf9a0): undefined reference to `omap4430_phy_exit'
arch/arm/mach-omap2/built-in.o:(.data+0xf9a4): undefined reference to `omap4430_phy_power'
arch/arm/mach-omap2/built-in.o:(.data+0xf9a8): undefined reference to `omap4430_phy_set_clk'
arch/arm/mach-omap2/built-in.o:(.data+0xf9ac): undefined reference to `omap4430_phy_suspend'

Fix the problem by moving the code to ifdef sections for omap3 and omap4.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
[tony@atomide.com: updated comments]
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/twl-common.c