diff options
author | Wolfgang Denk <wd@denx.de> | 2010-07-04 23:36:11 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-07-04 23:36:11 +0200 |
commit | f12d4cb48a1040c25a55148d0eedee1a896364e6 (patch) | |
tree | 8d7e6120f059a2436d3e21db3644994c24b6ea2d /drivers/mtd/spi/atmel.c | |
parent | a5496a180b3b6fd9feac6dc51822167892879470 (diff) | |
parent | b376bbb49f42ed8ea566ca1b3e440240204008ca (diff) | |
download | u-boot-imx-f12d4cb48a1040c25a55148d0eedee1a896364e6.zip u-boot-imx-f12d4cb48a1040c25a55148d0eedee1a896364e6.tar.gz u-boot-imx-f12d4cb48a1040c25a55148d0eedee1a896364e6.tar.bz2 |
Merge branch 'sf' of git://git.denx.de/u-boot-blackfin
Diffstat (limited to 'drivers/mtd/spi/atmel.c')
-rw-r--r-- | drivers/mtd/spi/atmel.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/mtd/spi/atmel.c b/drivers/mtd/spi/atmel.c index 8306c00..8d02169 100644 --- a/drivers/mtd/spi/atmel.c +++ b/drivers/mtd/spi/atmel.c @@ -467,7 +467,7 @@ out: struct spi_flash *spi_flash_probe_atmel(struct spi_slave *spi, u8 *idcode) { const struct atmel_spi_flash_params *params; - unsigned long page_size; + unsigned page_size; unsigned int family; struct atmel_spi_flash *asf; unsigned int i; @@ -540,8 +540,9 @@ struct spi_flash *spi_flash_probe_atmel(struct spi_slave *spi, u8 *idcode) * params->blocks_per_sector * params->nr_sectors; - debug("SF: Detected %s with page size %lu, total %u bytes\n", - params->name, page_size, asf->flash.size); + printf("SF: Detected %s with page size %u, total ", + params->name, page_size); + print_size(asf->flash.size, "\n"); return &asf->flash; |