Commit bc70ec26597d64071fcdb4d5e6c5474e5c325dec

Authored by Baruch Siach
Committed by Greg Kroah-Hartman
1 parent 8d5112b646

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/mmc/card/block.c
... ... @@ -260,7 +260,7 @@
260 260 int ret;
261 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 264 get_disk_ro(dev_to_disk(dev)) ^
265 265 md->read_only);
266 266 mmc_blk_put(md);