ARM: mmc: fix NONREMOVABLE test in sdhci-bcm-kona
authorChristian Daudt <csd@broadcom.com>
Fri, 2 Aug 2013 22:32:27 +0000 (15:32 -0700)
committerChristian Daudt <csd@broadcom.com>
Mon, 19 Aug 2013 23:29:42 +0000 (16:29 -0700)
sdhci-bcm-kona driver is incorrectly doing "|" to bit-test
NONREMOVABLE. Switch to "&"

Signed-off-by: Christian Daudt <csd@broadcom.com>
Reviewed-by: Markus Mayer <markus.mayer@linaro.org>
Reviewed-by: Matt Porter <matt.porter@linaro.org>
drivers/mmc/host/sdhci-bcm-kona.c

index 34fd65294d5f0bd34c482e119fbcc0b5c7029117..90a936732925edce366c009ca42ce206a9cabdf7 100644 (file)
@@ -263,7 +263,7 @@ static int sdhci_bcm_kona_probe(struct platform_device *pdev)
                (mmc_gpio_get_cd(host->mmc) != -ENOSYS) ? 'Y' : 'N',
                (mmc_gpio_get_ro(host->mmc) != -ENOSYS) ? 'Y' : 'N');
 
-       if (host->mmc->caps | MMC_CAP_NONREMOVABLE)
+       if (host->mmc->caps & MMC_CAP_NONREMOVABLE)
                host->quirks |= SDHCI_QUIRK_BROKEN_CARD_DETECTION;
 
        dev_dbg(dev, "is_8bit=%c\n",
@@ -282,7 +282,7 @@ static int sdhci_bcm_kona_probe(struct platform_device *pdev)
        }
 
        /* if device is eMMC, emulate card insert right here */
-       if (host->mmc->caps | MMC_CAP_NONREMOVABLE) {
+       if (host->mmc->caps & MMC_CAP_NONREMOVABLE) {
                ret = sdhci_bcm_kona_sd_card_emulate(host, 1);
                if (ret) {
                        dev_err(dev,
This page took 0.025384 seconds and 5 git commands to generate.