Commit 08ccc9be authored by Rui Miguel Silva's avatar Rui Miguel Silva Committed by Greg Kroah-Hartman

greybus: sdio: fix return of get_cd and get_ro

Functions were returning the wrong flag for the expected value. Swap
them.
Signed-off-by: default avatarRui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent c36d31cb
......@@ -635,7 +635,7 @@ static int gb_mmc_get_ro(struct mmc_host *mmc)
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)
......@@ -646,7 +646,7 @@ 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 = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment