[PATCH 2/9] state: mtd_get_meminfo: make usage of mtd's meminfo compatible to linux
Marc Kleine-Budde
mkl at pengutronix.de
Tue May 26 04:37:46 PDT 2015
This patch makes it possible to share the code with linux.
Signed-off-by: Marc Kleine-Budde <mkl at pengutronix.de>
---
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
More information about the barebox
mailing list