aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorChris Ball <cjb@laptop.org>2011-02-23 17:29:11 -0500
committerChris Ball <cjb@laptop.org>2011-03-15 13:49:39 -0400
commit24c300199b2f9125169c09ca3e950b17c16e2eab (patch)
treeea0060c0ca88549544edb587a57aa4ec317f4b6c /drivers/mmc
parente4243f13d10e5fbe2b84e211dcac3bc6e0792167 (diff)
mmc: sdhci-pci: Remove set-but-unused variable.
drivers/mmc/host/sdhci-pci.c: In function ‘sdhci_pci_probe_slot’: drivers/mmc/host/sdhci-pci.c:913:18: warning: variable ‘addr’ set but not used [-Wunused-but-set-variable] Signed-off-by: Chris Ball <cjb@laptop.org> Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/sdhci-pci.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/mmc/host/sdhci-pci.c b/drivers/mmc/host/sdhci-pci.c
index f7e622c539ba..2f8d46854acd 100644
--- a/drivers/mmc/host/sdhci-pci.c
+++ b/drivers/mmc/host/sdhci-pci.c
@@ -908,9 +908,6 @@ static struct sdhci_pci_slot * __devinit sdhci_pci_probe_slot(
908{ 908{
909 struct sdhci_pci_slot *slot; 909 struct sdhci_pci_slot *slot;
910 struct sdhci_host *host; 910 struct sdhci_host *host;
911
912 resource_size_t addr;
913
914 int ret; 911 int ret;
915 912
916 if (!(pci_resource_flags(pdev, bar) & IORESOURCE_MEM)) { 913 if (!(pci_resource_flags(pdev, bar) & IORESOURCE_MEM)) {
@@ -957,7 +954,6 @@ static struct sdhci_pci_slot * __devinit sdhci_pci_probe_slot(
957 goto free; 954 goto free;
958 } 955 }
959 956
960 addr = pci_resource_start(pdev, bar);
961 host->ioaddr = pci_ioremap_bar(pdev, bar); 957 host->ioaddr = pci_ioremap_bar(pdev, bar);
962 if (!host->ioaddr) { 958 if (!host->ioaddr) {
963 dev_err(&pdev->dev, "failed to remap registers\n"); 959 dev_err(&pdev->dev, "failed to remap registers\n");