diff --git a/include/flash.h b/include/flash.h index 171d604..8748068 100644 --- a/include/flash.h +++ b/include/flash.h @@ -20,7 +20,6 @@ struct flash_ops { struct flash_dev { struct flash_ops *ops; void *priv; - uint8_t log2_page_size; uint8_t log2_block_size; }; diff --git a/source/drivers/sandbox_flash.c b/source/drivers/sandbox_flash.c index 6174a5b..2f89503 100644 --- a/source/drivers/sandbox_flash.c +++ b/source/drivers/sandbox_flash.c @@ -144,7 +144,6 @@ struct flash_dev *flash_probe(void) dev->priv = priv; dev->ops = &stdio_flash_ops; - dev->log2_page_size = ilog2(1); dev->log2_block_size = ilog2(4 * KIB); return dev; diff --git a/source/ftl/dev.c b/source/ftl/dev.c index c394b14..9317d25 100644 --- a/source/ftl/dev.c +++ b/source/ftl/dev.c @@ -82,7 +82,6 @@ struct flash_dev *ftl_mount(struct flash_dev *raw_dev) dev->ops = &ftl_flash_ops; dev->priv = map; - dev->log2_page_size = ilog2(4 * KIB); dev->log2_block_size = ilog2(4 * KIB); return dev;