diff --git a/src/barebox-state/backend_storage.c b/src/barebox-state/backend_storage.c index 8812d73..823fe69 100644 --- a/src/barebox-state/backend_storage.c +++ b/src/barebox-state/backend_storage.c @@ -368,7 +368,6 @@ INIT_LIST_HEAD(&storage->buckets); storage->dev = &state->dev; - storage->name = storagetype; storage->stridesize = stridesize; storage->offset = offset; storage->max_size = max_size; @@ -378,8 +377,10 @@ if (!ret && !(meminfo.flags & MTD_NO_ERASE)) { bool circular; if (!storagetype || !strcmp(storagetype, "circular")) { + storage->name = "circular"; circular = true; } else if (!strcmp(storagetype, "noncircular")) { + storage->name = "noncircular"; dev_warn(storage->dev, "using old format circular storage type.\n"); circular = false; } else {