From patchwork Fri May 6 00:21:32 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 759792 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p460i79l017112 for ; Fri, 6 May 2011 00:44:08 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932403Ab1EFAng (ORCPT ); Thu, 5 May 2011 20:43:36 -0400 Received: from kroah.org ([198.145.64.141]:37185 "EHLO coco.kroah.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755945Ab1EFAZl (ORCPT ); Thu, 5 May 2011 20:25:41 -0400 Received: from localhost (c-76-121-69-168.hsd1.wa.comcast.net [76.121.69.168]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by coco.kroah.org (Postfix) with ESMTPSA id 5E8E148A56; Thu, 5 May 2011 17:25:41 -0700 (PDT) X-Mailbox-Line: From gregkh@clark.kroah.org Thu May 5 17:22:15 2011 Message-Id: <20110506002215.733039547@clark.kroah.org> User-Agent: quilt/0.48-16.4 Date: Thu, 05 May 2011 17:21:32 -0700 From: Greg KH To: linux-kernel@vger.kernel.org, stable@kernel.org Cc: stable-review@kernel.org, torvalds@linux-foundation.org, akpm@linux-foundation.org, alan@lxorguk.ukuu.org.uk, David Brownell , Alan Stern , linux-mmc@vger.kernel.org, =?ISO-8859-15?q?Uwe=20Kleine-K=C3=B6nig?= , Kukjin Kim , Maxim Levitsky , Randy Dunlap Subject: [107/143] mmc: build fix: mmc_pm_notify is only available with CONFIG_PM=y In-Reply-To: <20110506002311.GA15354@kroah.com> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Fri, 06 May 2011 00:44:08 +0000 (UTC) 2.6.32-longterm review patch. If anyone has any objections, please let us know. ------------------ From: Uwe Kleine-König 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 --- drivers/mmc/core/host.c | 2 ++ 1 file changed, 2 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- a/drivers/mmc/core/host.c +++ b/drivers/mmc/core/host.c @@ -85,7 +85,9 @@ struct mmc_host *mmc_alloc_host(int extr 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.