diff options
author | Jagannadha Sutradharudu Teki <jaganna@xilinx.com> | 2013-09-15 17:34:16 (GMT) |
---|---|---|
committer | Jagannadha Sutradharudu Teki <jaganna@xilinx.com> | 2013-10-07 12:25:47 (GMT) |
commit | 567901c8e09cf2aefe5cf0ab2b8b62fd83986d55 (patch) | |
tree | 37561783c779612e7e9478481db2c8a940d7537f /drivers | |
parent | af878522b524cb5821075e008ad79f9cb12440ba (diff) | |
download | u-boot-fsl-qoriq-567901c8e09cf2aefe5cf0ab2b8b62fd83986d55.tar.xz |
sf: probe: Use print_size arg as page_size
Use flash->page_size arg in print_size() instead of
flash->sector_size while printing detected flas part details.
Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mtd/spi/spi_flash_probe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/spi/spi_flash_probe.c b/drivers/mtd/spi/spi_flash_probe.c index d9be30f..68290bb 100644 --- a/drivers/mtd/spi/spi_flash_probe.c +++ b/drivers/mtd/spi/spi_flash_probe.c @@ -325,7 +325,7 @@ struct spi_flash *spi_flash_probe(unsigned int bus, unsigned int cs, #endif #ifndef CONFIG_SPL_BUILD printf("SF: Detected %s with page size ", flash->name); - print_size(flash->sector_size, ", total "); + print_size(flash->page_size, ", total "); print_size(flash->size, ""); if (flash->memory_map) printf(", mapped at %p", flash->memory_map); |