From patchwork Thu Jan 17 00:51:56 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 1993831 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 763D03FDD1 for ; Thu, 17 Jan 2013 00:52:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756341Ab3AQAwI (ORCPT ); Wed, 16 Jan 2013 19:52:08 -0500 Received: from mail-yh0-f42.google.com ([209.85.213.42]:65497 "EHLO mail-yh0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756161Ab3AQAwH (ORCPT ); Wed, 16 Jan 2013 19:52:07 -0500 Received: by mail-yh0-f42.google.com with SMTP id f35so340348yha.29 for ; Wed, 16 Jan 2013 16:52:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=1T0jShmctBe1nb7s20FESh2vyQN5mHGEA8rdhmUjEDg=; b=zTZGmXq5h6j7m5I9loBjgpCvIX59/ESg/Fo1dKxIg94Q7NuxglKjcwH+cJzYHP7YNe Za0F1BF6sAM9A8e98yuWc+Yww/0m2Oy/VXnGDkK9uEwA7euWncUxGRSiD8691nWxqKFi d2dC9bFUKyZtoWAjdTylKkGRSbuPUReNdBeghGkgzb798TDUQkTzt7suv3Rjd7rEssw5 +2CIq4W9yDo53BRb5GRDXNTm97RygO9EIdCiMTtlaiAr6cvN7V9Azsh8/8TIu6yhG3ab dyWCTRynw80GRb2Z1FNYBXQeG06U6lyY8CFjYnW+MEN4KClqzcfBf5j/XY0RY0xaVgrE MH1w== X-Received: by 10.236.134.72 with SMTP id r48mr3752634yhi.3.1358383927056; Wed, 16 Jan 2013 16:52:07 -0800 (PST) Received: from fabio-Latitude-E6410.cps.virtua.com.br ([201.82.136.221]) by mx.google.com with ESMTPS id a43sm21020934yhl.0.2013.01.16.16.52.05 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 16 Jan 2013 16:52:06 -0800 (PST) From: Fabio Estevam To: cjb@laptop.org Cc: shawn.guo@linaro.org, linux-mmc@vger.kernel.org, Fabio Estevam Subject: [PATCH] mmc: sdhci-esdhc-imx: Remove unused variables Date: Wed, 16 Jan 2013 22:51:56 -0200 Message-Id: <1358383916-23614-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org From: Fabio Estevam commit 842afc02cf (mmc: sdhci-esdhc-imx: do not reference platform data after probe) introduced the following build warnings: drivers/mmc/host/sdhci-esdhc-imx.c:149:30: warning: unused variable 'boarddata' [-Wunused-variable] drivers/mmc/host/sdhci-esdhc-imx.c:181:30: warning: unused variable 'boarddata' [-Wunused-variable] Remove the unused variables. Signed-off-by: Fabio Estevam Acked-by: Shawn Guo --- drivers/mmc/host/sdhci-esdhc-imx.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index ae68bc9..509be3a 100644 --- a/drivers/mmc/host/sdhci-esdhc-imx.c +++ b/drivers/mmc/host/sdhci-esdhc-imx.c @@ -144,10 +144,6 @@ static inline void esdhc_clrset_le(struct sdhci_host *host, u32 mask, u32 val, i static u32 esdhc_readl_le(struct sdhci_host *host, int reg) { - struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); - struct pltfm_imx_data *imx_data = pltfm_host->priv; - struct esdhc_platform_data *boarddata = &imx_data->boarddata; - u32 val = readl(host->ioaddr + reg); if (unlikely(reg == SDHCI_CAPABILITIES)) { @@ -178,7 +174,6 @@ static void esdhc_writel_le(struct sdhci_host *host, u32 val, int reg) { struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); struct pltfm_imx_data *imx_data = pltfm_host->priv; - struct esdhc_platform_data *boarddata = &imx_data->boarddata; u32 data; if (unlikely(reg == SDHCI_INT_ENABLE || reg == SDHCI_SIGNAL_ENABLE)) {