zynq_sdhci.c: Fix warning in arasan_sdhci_probe
authorTom Rini <trini@konsulko.com>
Fri, 5 Aug 2016 21:34:55 +0000 (17:34 -0400)
committerTom Rini <trini@konsulko.com>
Sat, 6 Aug 2016 00:55:31 +0000 (20:55 -0400)
We no longer need to set 'caps' as it's not passed to sdhci_setup_cfg
anymore.

Fixes: 14bed52d276a ("mmc: sdhci: remove the unnecessary arguments for
sdhci_setup_cfg")
Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/mmc/zynq_sdhci.c

index bf542192cec3eab574108003de2d5a94763ae766..3815b9432927a8448e406d28c150cf0cc665c55d 100644 (file)
@@ -27,7 +27,6 @@ static int arasan_sdhci_probe(struct udevice *dev)
        struct arasan_sdhci_plat *plat = dev_get_platdata(dev);
        struct mmc_uclass_priv *upriv = dev_get_uclass_priv(dev);
        struct sdhci_host *host = dev_get_priv(dev);
-       u32 caps;
        int ret;
 
        host->quirks = SDHCI_QUIRK_WAIT_SEND_CMD |
@@ -39,7 +38,6 @@ static int arasan_sdhci_probe(struct udevice *dev)
 
        host->version = sdhci_readw(host, SDHCI_HOST_VERSION);
 
-       caps = sdhci_readl(host, SDHCI_CAPABILITIES);
        ret = sdhci_setup_cfg(&plat->cfg, host, CONFIG_ZYNQ_SDHCI_MAX_FREQ,
                              CONFIG_ZYNQ_SDHCI_MIN_FREQ);
        host->mmc = &plat->mmc;