]> bbs.cooldavid.org Git - net-next-2.6.git/commit
mmc: msm: fix up build breakage on !PM
authorDaniel Walker <dwalker@codeaurora.org>
Wed, 23 Jun 2010 19:32:20 +0000 (12:32 -0700)
committerDaniel Walker <dwalker@codeaurora.org>
Wed, 23 Jun 2010 22:11:34 +0000 (15:11 -0700)
commit08ecfde47534ced67c3c16a15845456e83bd31d1
tree6dbb2bb7b05a5ec0ff1ad3897f621435ecdbcd50
parent7e27d6e778cd87b6f2415515d7127eba53fe5d02
mmc: msm: fix up build breakage on !PM

with PM disabled I get the following compile error,

drivers/built-in.o: In function `msmsdcc_resume':
linux-2.6/drivers/mmc/host/msm_sdcc.c:1352: undefined reference to `mmc_resume_host'
drivers/built-in.o: In function `msmsdcc_suspend':
linux-2.6/drivers/mmc/host/msm_sdcc.c:1330: undefined reference to `mmc_suspend_host'

This adds ifdefs around the suspend/resume functions to prevent this.

Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
drivers/mmc/host/msm_sdcc.c