summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorPhil Edworthy <PHIL.EDWORTHY@renesas.com>2016-12-09 15:03:39 (GMT)
committerJagan Teki <jagan@amarulasolutions.com>2016-12-15 15:57:28 (GMT)
commitdb9225ba2686d6b7e249d00e1803bd07f71d6070 (patch)
tree7d3d68e6722c12adaf163dd776ca1e2773638561 /drivers/mtd
parent304decdd31d54ae274f785fb086f3f6ae30a8711 (diff)
downloadu-boot-fsl-qoriq-db9225ba2686d6b7e249d00e1803bd07f71d6070.tar.xz
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>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/spi/spi_flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/spi/spi_flash.c b/drivers/mtd/spi/spi_flash.c
index 41fc0a6..b902540 100644
--- a/drivers/mtd/spi/spi_flash.c
+++ b/drivers/mtd/spi/spi_flash.c
@@ -985,7 +985,7 @@ int spi_flash_decode_fdt(const void *blob, struct spi_flash *flash)
return 0;
}
- if (flash->size != size) {
+ if (flash->size > size) {
debug("%s: Memory map must cover entire device\n", __func__);
return -1;
}