From mboxrd@z Thu Jan 1 00:00:00 1970 From: Randy Dunlap Subject: [PATCH] mmc: build fix: mmc_pm_notify is only available with CONFIG_PM=y Date: Wed, 18 Aug 2010 09:25:38 -0700 Message-ID: <20100818092538.f36a2246.randy.dunlap@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from rcsinet10.oracle.com ([148.87.113.121]:45730 "EHLO rcsinet10.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751051Ab0HRQ1b convert rfc822-to-8bit (ORCPT ); Wed, 18 Aug 2010 12:27:31 -0400 Sender: linux-mmc-owner@vger.kernel.org List-Id: linux-mmc@vger.kernel.org To: lkml , torvalds , Uwe =?ISO-8859-1?Q?Kleine-K=F6nig?= Cc: Maxim Levitsky , David Brownell , Alan Stern , linux-mmc@vger.kernel.org, Andrew Morton =46rom: Uwe Kleine-K=F6nig This fixes a build breakage introduced by 4c2ef25 (mmc: fix all hangs related to mmc/sd card insert/removal duri= ng suspend/resume) Cc: David Brownell Cc: Alan Stern Cc: linux-mmc@vger.kernel.org Cc: Andrew Morton Signed-off-by: Uwe Kleine-K=F6nig Acked-by: Kukjin Kim Acked-by: Maxim Levitsky Acked-by: Randy Dunlap --- drivers/mmc/core/host.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) There have been 3 patches like this posted, but no one is pushing it for merging... diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c index 0efe631..d80cfdc 100644 --- a/drivers/mmc/core/host.c +++ b/drivers/mmc/core/host.c @@ -86,7 +86,9 @@ struct mmc_host *mmc_alloc_host(int extra, struct dev= ice *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 =3D mmc_pm_notify; +#endif =20 /* * By default, hosts do not support SGIO or large requests. --=20 1.7.1 --