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>

+22 -16
+22 -16
drivers/mmc/host/msm_sdcc.c
··· 1057 1057 return 0; 1058 1058 } 1059 1059 1060 - #ifdef CONFIG_MMC_MSM7X00A_RESUME_IN_WQ 1061 - static void 1062 - do_resume_work(struct work_struct *work) 1063 - { 1064 - struct msmsdcc_host *host = 1065 - container_of(work, struct msmsdcc_host, resume_task); 1066 - struct mmc_host *mmc = host->mmc; 1067 - 1068 - if (mmc) { 1069 - mmc_resume_host(mmc); 1070 - if (host->stat_irq) 1071 - enable_irq(host->stat_irq); 1072 - } 1073 - } 1074 - #endif 1075 - 1076 1060 static int 1077 1061 msmsdcc_probe(struct platform_device *pdev) 1078 1062 { ··· 1298 1314 return ret; 1299 1315 } 1300 1316 1317 + #ifdef CONFIG_PM 1318 + #ifdef CONFIG_MMC_MSM7X00A_RESUME_IN_WQ 1319 + static void 1320 + do_resume_work(struct work_struct *work) 1321 + { 1322 + struct msmsdcc_host *host = 1323 + container_of(work, struct msmsdcc_host, resume_task); 1324 + struct mmc_host *mmc = host->mmc; 1325 + 1326 + if (mmc) { 1327 + mmc_resume_host(mmc); 1328 + if (host->stat_irq) 1329 + enable_irq(host->stat_irq); 1330 + } 1331 + } 1332 + #endif 1333 + 1334 + 1301 1335 static int 1302 1336 msmsdcc_suspend(struct platform_device *dev, pm_message_t state) 1303 1337 { ··· 1360 1358 } 1361 1359 return 0; 1362 1360 } 1361 + #else 1362 + #define msmsdcc_suspend 0 1363 + #define msmsdcc_resume 0 1364 + #endif 1363 1365 1364 1366 static struct platform_driver msmsdcc_driver = { 1365 1367 .probe = msmsdcc_probe,