spi: flash: use default_is_erased() to check if a block is erased

This commit is contained in:
S.J.R. van Schaik 2017-06-14 16:19:36 +02:00
parent 68593c2e6f
commit 7ab3a84fc4

View file

@ -23,6 +23,7 @@ static struct flash_ops spi_flash_ops = {
.get_capacity = spi_flash_get_size,
.read = spi_flash_read,
.write = spi_flash_write,
.is_erased = default_flash_is_erased,
.erase = spi_flash_erase,
};