aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host
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/host
parente4243f13d10e5fbe2b84e211dcac3bc6e0792167 (diff)
downloadkernel_samsung_aries-24c300199b2f9125169c09ca3e950b17c16e2eab.zip
kernel_samsung_aries-24c300199b2f9125169c09ca3e950b17c16e2eab.tar.gz
kernel_samsung_aries-24c300199b2f9125169c09ca3e950b17c16e2eab.tar.bz2
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/host')
-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 f7e622c..2f8d468 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(
{
struct sdhci_pci_slot *slot;
struct sdhci_host *host;
-
- resource_size_t addr;
-
int ret;
if (!(pci_resource_flags(pdev, bar) & IORESOURCE_MEM)) {
@@ -957,7 +954,6 @@ static struct sdhci_pci_slot * __devinit sdhci_pci_probe_slot(
goto free;
}
- addr = pci_resource_start(pdev, bar);
host->ioaddr = pci_ioremap_bar(pdev, bar);
if (!host->ioaddr) {
dev_err(&pdev->dev, "failed to remap registers\n");