From patchwork Tue Jul 20 06:37:58 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sukumar Ghorai X-Patchwork-Id: 112962 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o6K6cGtj008916 for ; Tue, 20 Jul 2010 06:38:16 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753755Ab0GTGiO (ORCPT ); Tue, 20 Jul 2010 02:38:14 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:56539 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752122Ab0GTGiO (ORCPT ); Tue, 20 Jul 2010 02:38:14 -0400 Received: from dbdp31.itg.ti.com ([172.24.170.98]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id o6K6c1f5006772 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 20 Jul 2010 01:38:05 -0500 Received: from localhost.localdomain (localhost [127.0.0.1]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id o6K6bwpd011312; Tue, 20 Jul 2010 12:07:59 +0530 (IST) From: Sukumar Ghorai To: linux-mmc@vger.kernel.org Cc: linux-omap@vger.kernel.org, Sukumar Ghorai , Santosh Shilimkar , Madhusudhan Chikkature , Andrew Morton Subject: [PATCH] omap: hsmmc funtionality breaks when CONFIG_PM not define Date: Tue, 20 Jul 2010 12:07:58 +0530 Message-Id: <1279607878-2405-1-git-send-email-s-ghorai@ti.com> X-Mailer: git-send-email 1.5.4.7 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 20 Jul 2010 06:38:16 +0000 (UTC) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index b032828..f84eed0 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c @@ -2015,9 +2015,11 @@ static int __init omap_hsmmc_probe(struct platform_device *pdev) platform_set_drvdata(pdev, host); INIT_WORK(&host->mmc_carddetect_work, omap_hsmmc_detect); +#ifdef CONFIG_PM if (mmc_slot(host).power_saving) mmc->ops = &omap_hsmmc_ps_ops; else +#endif mmc->ops = &omap_hsmmc_ops; /*