From: Uwe Kleine-König Date: Wed, 18 Aug 2010 16:25:38 +0000 (-0700) Subject: mmc: build fix: mmc_pm_notify is only available with CONFIG_PM=y X-Git-Tag: v2.6.32.40~39 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ed9de8cc020e04c55c0952ce8040b6f1f1d2fab1;p=karo-tx-linux.git mmc: build fix: mmc_pm_notify is only available with CONFIG_PM=y commit 81ca03a0e2ea0207b2df80e0edcf4c775c07a505 upstream. This fixes a build breakage introduced by commit 4c2ef25fe0b8 ("mmc: fix all hangs related to mmc/sd card insert/removal during suspend/resume") Cc: David Brownell Cc: Alan Stern Cc: linux-mmc@vger.kernel.org Cc: Andrew Morton Signed-off-by: Uwe Kleine-König Acked-by: Kukjin Kim Acked-by: Maxim Levitsky Acked-by: Randy Dunlap Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c index b88fc3d50b8b..bc875cda66ff 100644 --- a/drivers/mmc/core/host.c +++ b/drivers/mmc/core/host.c @@ -85,7 +85,9 @@ struct mmc_host *mmc_alloc_host(int extra, struct device *dev) init_waitqueue_head(&host->wq); INIT_DELAYED_WORK(&host->detect, mmc_rescan); INIT_DELAYED_WORK_DEFERRABLE(&host->disable, mmc_host_deeper_disable); +#ifdef CONFIG_PM host->pm_notify.notifier_call = mmc_pm_notify; +#endif /* * By default, hosts do not support SGIO or large requests.