diff options
author | Baruch Siach <baruch@tkos.co.il> | 2014-09-22 10:12:51 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-01-08 10:30:16 -0800 |
commit | bc70ec26597d64071fcdb4d5e6c5474e5c325dec (patch) | |
tree | 4fa737f8d1418d4b014f8833707e5c9262d7d7d7 /drivers/mmc | |
parent | 8d5112b646f2ee91a33c3c459572c7d5b0356a38 (diff) | |
download | lwn-bc70ec26597d64071fcdb4d5e6c5474e5c325dec.tar.gz lwn-bc70ec26597d64071fcdb4d5e6c5474e5c325dec.zip |
mmc: block: add newline to sysfs display of force_ro
commit 0031a98a85e9fca282624bfc887f9531b2768396 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/mmc')
-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, 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); |