X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fmmc%2Fhost%2Fwbsd.c;h=67e5a9b80f53831358698d83c9243220cdebc2a1;hb=cf0984c8edf63017fcc2ead212ca057877e345df;hp=c303e7f57ab45cf1473fd6c393443aa2e19d994e;hpb=9583f3d9c00974911daf227cbaa12d6c1caaabad;p=linux-2.6-omap-h63xx.git diff --git a/drivers/mmc/host/wbsd.c b/drivers/mmc/host/wbsd.c index c303e7f57ab..67e5a9b80f5 100644 --- a/drivers/mmc/host/wbsd.c +++ b/drivers/mmc/host/wbsd.c @@ -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 = {