From patchwork Fri Aug 13 10:36:19 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kim Kukjin X-Patchwork-Id: 177012 Return-path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on void.printf.net X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.9 tests=RCVD_IN_DNSWL_LOW autolearn=disabled version=3.2.5 Envelope-to: chris@printf.net Delivery-date: Fri, 13 Aug 2010 11:37:21 +0100 Received: from lists.laptop.org ([18.85.2.145] helo=mail.laptop.org) by void.printf.net with esmtp (Exim 4.69) (envelope-from ) id 1OjrdZ-0005s3-5Z for chris@printf.net; Fri, 13 Aug 2010 11:37:21 +0100 Received: by mail.laptop.org (Postfix) id 10E5323BD5; Fri, 13 Aug 2010 06:37:03 -0400 (EDT) Delivered-To: cjb@laptop.org Received: from spam.laptop.org (spam.laptop.org [18.85.46.23]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.laptop.org (Postfix) with ESMTPS id E102323BD3 for ; Fri, 13 Aug 2010 06:37:02 -0400 (EDT) X-ASG-Debug-ID: 1281695839-0b74442c0001-zHW3sV Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by spam.laptop.org with ESMTP id 8KcjCJgtsq6MPEEC for ; Fri, 13 Aug 2010 06:37:19 -0400 (EDT) X-Barracuda-Envelope-From: linux-mmc-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761456Ab0HMKgv (ORCPT ); Fri, 13 Aug 2010 06:36:51 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:32349 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761449Ab0HMKgv (ORCPT ); Fri, 13 Aug 2010 06:36:51 -0400 Received: from epmmp1. (mailout1.samsung.com [203.254.224.24]) by mailout1.samsung.com (Sun Java(tm) System Messaging Server 7u3-15.01 64bit (built Feb 12 2010)) with ESMTP id <0L73004356TDQM50@mailout1.samsung.com>; Fri, 13 Aug 2010 19:36:49 +0900 (KST) Received: from kgenekim (unknown [12.23.103.96]) by mmp1.samsung.com (Sun Java(tm) System Messaging Server 7u3-15.01 64bit (built Feb 12 2010)) with ESMTPA id <0L7300DTW6TDT4A0@mmp1.samsung.com>; Fri, 13 Aug 2010 19:36:49 +0900 (KST) From: Kukjin Kim To: linux-arm-kernel@lists.infradead.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: ben-linux@fluff.org, 'Andrew Morton' , 'Maxim Levitsky' X-ASG-Orig-Subj: undefined reference to `mmc_pm_notify' when selected MMC without PM. Subject: undefined reference to `mmc_pm_notify' when selected MMC without PM. Date: Fri, 13 Aug 2010 19:36:19 +0900 Message-id: <009301cb3ad3$77c8a620$6759f260$%kim@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Acs6013kncgG7a0xT7OSTxXxSM1aSw== Content-language: ko Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Barracuda-Connect: vger.kernel.org[209.132.180.67] X-Barracuda-Start-Time: 1281695839 X-Barracuda-URL: http://18.85.46.23:8000/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at laptop.org X-Barracuda-Spam-Score: 0.50 X-Barracuda-Spam-Status: No, SCORE=0.50 using global scores of TAG_LEVEL=3.5 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=5.5 tests=BSF_RULE7568M X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.37859 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.50 BSF_RULE7568M Custom Rule 7568M 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 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