This patch makes it possible to share the code with linux. Signed-off-by: Marc Kleine-Budde <mkl@xxxxxxxxxxxxxx> --- common/state.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/state.c b/common/state.c index c13f7a00c98c..82a21e912206 100644 --- a/common/state.c +++ b/common/state.c @@ -1019,7 +1019,7 @@ int state_backend_dtb_file(struct state *state, const char *of_path, const char state->backend = backend; ret = mtd_get_meminfo(backend->path, &meminfo); - if (!ret && !(meminfo.mtd->flags & MTD_NO_ERASE)) + if (!ret && !(meminfo.flags & MTD_NO_ERASE)) backend_dtb->need_erase = true; return 0; @@ -1268,7 +1268,7 @@ int state_backend_raw_file(struct state *state, const char *of_path, state->backend = backend; ret = mtd_get_meminfo(backend->path, &meminfo); - if (!ret && !(meminfo.mtd->flags & MTD_NO_ERASE)) { + if (!ret && !(meminfo.flags & MTD_NO_ERASE)) { backend_raw->need_erase = true; backend_raw->step = ALIGN(backend_raw->size_full, meminfo.erasesize); -- 2.1.4 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox