From ff17b78ed0e37eb288460d87873599eae748cde7 Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Sun, 26 Apr 2009 08:15:47 +0300 Subject: libmtd: rename rdonly field This is a preparation for the coming sysfs support. Signed-off-by: Artem Bityutskiy --- ubi-utils/src/ubiformat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ubi-utils/src/ubiformat.c') diff --git a/ubi-utils/src/ubiformat.c b/ubi-utils/src/ubiformat.c index 686c419..b64d187 100644 --- a/ubi-utils/src/ubiformat.c +++ b/ubi-utils/src/ubiformat.c @@ -732,7 +732,7 @@ int main(int argc, char * const argv[]) */ mtd.subpage_size = args.subpage_size; - if (mtd.rdonly) { + if (!mtd.writable) { errmsg("mtd%d (%s) is a read-only device", mtd.num, args.node); goto out; } -- cgit v1.2.3