ARM: OMAP: Fix build error when mmc_omap is built as module
authorTony Lindgren <tony@atomide.com>
Mon, 20 Feb 2012 18:00:03 +0000 (10:00 -0800)
committerTony Lindgren <tony@atomide.com>
Mon, 20 Feb 2012 18:00:38 +0000 (10:00 -0800)
commitd517110243130965e2803cc2373d434bdaf6dafb
tree5eda0cce2126cf7812a9b1e7ecefcf568a3117b0
parent97899e555b76ce64222303bc8d46fda9d49eb14b
ARM: OMAP: Fix build error when mmc_omap is built as module

Otherwise we get the following error:

arch/arm/mach-omap2/built-in.o: In function `n8x0_mmc_callback':
twl-common.c:(.text+0x108a0): undefined reference to
`omap_mmc_notify_cover_event'

Fix this by warning about unusable MMC cover events.

The long term fix needs to change the MMC drivers to
register board specific callbacks directly with PMIC.

Reported-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/board-n8x0.c