Functions were returning the wrong flag for the expected value. Swap
them.
Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
        if (host->removed)
                return -ESHUTDOWN;
        mutex_unlock(&host->lock);
-       return host->card_present;
+       return host->read_only;
 }
 
 static int gb_mmc_get_cd(struct mmc_host *mmc)
        if (host->removed)
                return -ESHUTDOWN;
        mutex_unlock(&host->lock);
-       return host->read_only;
+       return host->card_present;
 }
 
 static const struct mmc_host_ops gb_sdio_ops = {