diff options
Diffstat (limited to 'drivers/mtd/ubi/build.c')
-rw-r--r-- | drivers/mtd/ubi/build.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c index b967191cc97e..8f1f9feb2d60 100644 --- a/drivers/mtd/ubi/build.c +++ b/drivers/mtd/ubi/build.c | |||
@@ -246,7 +246,7 @@ static ssize_t dev_attribute_show(struct device *dev, | |||
246 | else if (attr == &dev_total_eraseblocks) | 246 | else if (attr == &dev_total_eraseblocks) |
247 | ret = sprintf(buf, "%d\n", ubi->good_peb_count); | 247 | ret = sprintf(buf, "%d\n", ubi->good_peb_count); |
248 | else if (attr == &dev_volumes_count) | 248 | else if (attr == &dev_volumes_count) |
249 | ret = sprintf(buf, "%d\n", ubi->vol_count); | 249 | ret = sprintf(buf, "%d\n", ubi->vol_count - UBI_INT_VOL_COUNT); |
250 | else if (attr == &dev_max_ec) | 250 | else if (attr == &dev_max_ec) |
251 | ret = sprintf(buf, "%d\n", ubi->max_ec); | 251 | ret = sprintf(buf, "%d\n", ubi->max_ec); |
252 | else if (attr == &dev_reserved_for_bad) | 252 | else if (attr == &dev_reserved_for_bad) |