Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760375Ab0HLQhQ (ORCPT ); Thu, 12 Aug 2010 12:37:16 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]:16494 "EHLO rcsinet10.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760080Ab0HLQhP (ORCPT ); Thu, 12 Aug 2010 12:37:15 -0400 Date: Thu, 12 Aug 2010 09:36:43 -0700 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: akpm@linux-foundation.org, linux-mmc@vger.kernel.org Subject: [PATCH] mmc: fix for CONFIG_PM disabled Message-Id: <20100812093643.852adc98.randy.dunlap@oracle.com> In-Reply-To: <201008112340.o7BNenDe021017@imap1.linux-foundation.org> References: <201008112340.o7BNenDe021017@imap1.linux-foundation.org> Organization: Oracle Linux Eng. X-Mailer: Sylpheed 2.7.1 (GTK+ 2.16.6; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1041 Lines: 30 From: Randy Dunlap Minimal patch to fix mmc to build when CONFIG_PM is not enabled: (.text+0x128fcd): undefined reference to `mmc_pm_notify' Signed-off-by: Randy Dunlap --- drivers/mmc/core/host.c | 2 ++ 1 file changed, 2 insertions(+) Seems to be needed in mainline also. --- mmotm-2010-0811-1610.orig/drivers/mmc/core/host.c +++ mmotm-2010-0811-1610/drivers/mmc/core/host.c @@ -86,7 +86,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. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/