From patchwork Wed Aug 3 06:48:58 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: axel lin X-Patchwork-Id: 1030612 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p736n9vc017918 for ; Wed, 3 Aug 2011 06:49:09 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750901Ab1HCGtI (ORCPT ); Wed, 3 Aug 2011 02:49:08 -0400 Received: from mail-iy0-f174.google.com ([209.85.210.174]:53952 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750811Ab1HCGtH (ORCPT ); Wed, 3 Aug 2011 02:49:07 -0400 Received: by iyb12 with SMTP id 12so658352iyb.19 for ; Tue, 02 Aug 2011 23:49:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:from:to:cc:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=sC/EQFPjvyIACmE4c/G6aszf9MKc+brREHhWp9lNrAk=; b=vnXQdL7djGZXBkgsUNMQYwlN1hWUiGwPxrnQX46HqmH/gGNPJG8yJgw1bswfvqNXxw rltpkSHhEXrF7XxGvmpCICe3Ey+4gfTFWFumLVIP0nL8qos7+T/LCJZYX+pRcOPKw6SB EL72CV0/ISL1sHm+x9lQZcAxgmVotwYOgkL9Y= Received: by 10.231.10.200 with SMTP id q8mr4453569ibq.144.1312354146370; Tue, 02 Aug 2011 23:49:06 -0700 (PDT) Received: from [218.172.237.169] (218-172-237-169.dynamic.hinet.net [218.172.237.169]) by mx.google.com with ESMTPS id fu7sm389432ibb.19.2011.08.02.23.49.03 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 02 Aug 2011 23:49:05 -0700 (PDT) Subject: [PATCH] mmc: tmio: eliminate unused variable 'mmc' warning From: Axel Lin To: linux-kernel@vger.kernel.org Cc: Guennadi Liakhovetski , Ian Molton , Chris Ball , linux-mmc@vger.kernel.org Date: Wed, 03 Aug 2011 14:48:58 +0800 Message-ID: <1312354138.14329.1.camel@phoenix> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 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]); Wed, 03 Aug 2011 06:49:09 +0000 (UTC) Fix below compile warning: CC drivers/mmc/host/tmio_mmc.o drivers/mmc/host/tmio_mmc.c: In function 'tmio_mmc_suspend': drivers/mmc/host/tmio_mmc.c:30: warning: unused variable 'mmc' drivers/mmc/host/tmio_mmc.c: In function 'tmio_mmc_resume': drivers/mmc/host/tmio_mmc.c:45: warning: unused variable 'mmc' Signed-off-by: Axel Lin Acked-by: Guennadi Liakhovetski --- drivers/mmc/host/tmio_mmc.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/tmio_mmc.c b/drivers/mmc/host/tmio_mmc.c index 8d185de..44a9668 100644 --- a/drivers/mmc/host/tmio_mmc.c +++ b/drivers/mmc/host/tmio_mmc.c @@ -27,7 +27,6 @@ static int tmio_mmc_suspend(struct platform_device *dev, pm_message_t state) { const struct mfd_cell *cell = mfd_get_cell(dev); - struct mmc_host *mmc = platform_get_drvdata(dev); int ret; ret = tmio_mmc_host_suspend(&dev->dev); @@ -42,7 +41,6 @@ static int tmio_mmc_suspend(struct platform_device *dev, pm_message_t state) static int tmio_mmc_resume(struct platform_device *dev) { const struct mfd_cell *cell = mfd_get_cell(dev); - struct mmc_host *mmc = platform_get_drvdata(dev); int ret = 0; /* Tell the MFD core we are ready to be enabled */