Commit db9225ba2686d6b7e249d00e1803bd07f71d6070

Authored by Phil Edworthy
Committed by Jagan Teki
1 parent 304decdd31

sf: Do not force the DT memory map size to exactly match the device

As long as the memory mapped size specifeid in the DT is the same or
bigger than the device size, it will work. So do not force the sizes
to be identical.

Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/mtd/spi/spi_flash.c
... ... @@ -985,7 +985,7 @@
985 985 return 0;
986 986 }
987 987  
988   - if (flash->size != size) {
  988 + if (flash->size > size) {
989 989 debug("%s: Memory map must cover entire device\n", __func__);
990 990 return -1;
991 991 }