]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/mmc/host/wbsd.c
MMC: S3C24XX: Add support to invert write protect line
[linux-2.6-omap-h63xx.git] / drivers / mmc / host / wbsd.c
index c303e7f57ab45cf1473fd6c393443aa2e19d994e..67e5a9b80f53831358698d83c9243220cdebc2a1 100644 (file)
@@ -939,7 +939,7 @@ static int wbsd_get_ro(struct mmc_host *mmc)
 
        spin_unlock_bh(&host->lock);
 
-       return csr & WBSD_WRPT;
+       return !!(csr & WBSD_WRPT);
 }
 
 static const struct mmc_host_ops wbsd_ops = {