aboutsummaryrefslogtreecommitdiff
path: root/drivers/mmc/card/block.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2015-01-08 18:54:30 +0000
committerMark Brown <broonie@kernel.org>2015-01-08 18:54:30 +0000
commit96eef3ffee79f2161228e79f0f2e34c06998ed64 (patch)
tree91c358677ca0b73976feabbe15924e9b0061f33c /drivers/mmc/card/block.c
parentca06a403e8e81c290e650ae33da4f53f4e0c87b3 (diff)
parent297e25caff999eeccf24b19e62388450763af15d (diff)
downloadlinux-linaro-stable-96eef3ffee79f2161228e79f0f2e34c06998ed64.tar.gz
Merge branch 'linux-linaro-lsk-v3.14' into linux-linaro-lsk-v3.14-android
Diffstat (limited to 'drivers/mmc/card/block.c')
-rw-r--r--drivers/mmc/card/block.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c
index feb9bf5e4c17..79b47b69f92a 100644
--- a/drivers/mmc/card/block.c
+++ b/drivers/mmc/card/block.c
@@ -259,7 +259,7 @@ static ssize_t force_ro_show(struct device *dev, struct device_attribute *attr,
int ret;
struct mmc_blk_data *md = mmc_blk_get(dev_to_disk(dev));
- ret = snprintf(buf, PAGE_SIZE, "%d",
+ ret = snprintf(buf, PAGE_SIZE, "%d\n",
get_disk_ro(dev_to_disk(dev)) ^
md->read_only);
mmc_blk_put(md);