diff options
author | Baruch Siach <baruch@tkos.co.il> | 2014-09-22 03:12:51 -0400 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2014-11-10 06:40:24 -0500 |
commit | 0031a98a85e9fca282624bfc887f9531b2768396 (patch) | |
tree | 25df0046276df4569e3a30f4e65d9393a72b3cb5 /drivers/mmc/card | |
parent | 206c5f60a3d902bc4b56dab2de3e88de5eb06108 (diff) |
mmc: block: add newline to sysfs display of force_ro
Make force_ro consistent with other sysfs entries.
Fixes: 371a689f64b0d ('mmc: MMC boot partitions support')
Cc: Andrei Warkentin <andrey.warkentin@gmail.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/card')
-rw-r--r-- | drivers/mmc/card/block.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c index 1fa4c80ff886..a11451f4f408 100644 --- a/drivers/mmc/card/block.c +++ b/drivers/mmc/card/block.c | |||
@@ -260,7 +260,7 @@ static ssize_t force_ro_show(struct device *dev, struct device_attribute *attr, | |||
260 | int ret; | 260 | int ret; |
261 | struct mmc_blk_data *md = mmc_blk_get(dev_to_disk(dev)); | 261 | struct mmc_blk_data *md = mmc_blk_get(dev_to_disk(dev)); |
262 | 262 | ||
263 | ret = snprintf(buf, PAGE_SIZE, "%d", | 263 | ret = snprintf(buf, PAGE_SIZE, "%d\n", |
264 | get_disk_ro(dev_to_disk(dev)) ^ | 264 | get_disk_ro(dev_to_disk(dev)) ^ |
265 | md->read_only); | 265 | md->read_only); |
266 | mmc_blk_put(md); | 266 | mmc_blk_put(md); |