aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/devices/mtd_dataflash.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/devices/mtd_dataflash.c')
-rw-r--r--drivers/mtd/devices/mtd_dataflash.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/mtd/devices/mtd_dataflash.c b/drivers/mtd/devices/mtd_dataflash.c
index f409aef58ed2..d75c7af18a63 100644
--- a/drivers/mtd/devices/mtd_dataflash.c
+++ b/drivers/mtd/devices/mtd_dataflash.c
@@ -249,8 +249,8 @@ static int dataflash_read(struct mtd_info *mtd, loff_t from, size_t len,
249 uint8_t *command; 249 uint8_t *command;
250 int status; 250 int status;
251 251
252 pr_debug("%s: read 0x%x..0x%x\n", 252 pr_debug("%s: read 0x%x..0x%x\n", dev_name(&priv->spi->dev),
253 dev_name(&priv->spi->dev), (unsigned)from, (unsigned)(from + len)); 253 (unsigned)from, (unsigned)(from + len));
254 254
255 *retlen = 0; 255 *retlen = 0;
256 256
@@ -384,7 +384,7 @@ static int dataflash_write(struct mtd_info *mtd, loff_t to, size_t len,
384 384
385 status = spi_sync(spi, &msg); 385 status = spi_sync(spi, &msg);
386 if (status < 0) 386 if (status < 0)
387 pr_debug("%s: xfer %u -> %d \n", 387 pr_debug("%s: xfer %u -> %d\n",
388 dev_name(&spi->dev), addr, status); 388 dev_name(&spi->dev), addr, status);
389 389
390 (void) dataflash_waitready(priv->spi); 390 (void) dataflash_waitready(priv->spi);
@@ -406,7 +406,7 @@ static int dataflash_write(struct mtd_info *mtd, loff_t to, size_t len,
406 status = spi_sync(spi, &msg); 406 status = spi_sync(spi, &msg);
407 spi_transfer_del(x + 1); 407 spi_transfer_del(x + 1);
408 if (status < 0) 408 if (status < 0)
409 pr_debug("%s: pgm %u/%u -> %d \n", 409 pr_debug("%s: pgm %u/%u -> %d\n",
410 dev_name(&spi->dev), addr, writelen, status); 410 dev_name(&spi->dev), addr, writelen, status);
411 411
412 (void) dataflash_waitready(priv->spi); 412 (void) dataflash_waitready(priv->spi);
@@ -426,7 +426,7 @@ static int dataflash_write(struct mtd_info *mtd, loff_t to, size_t len,
426 426
427 status = spi_sync(spi, &msg); 427 status = spi_sync(spi, &msg);
428 if (status < 0) 428 if (status < 0)
429 pr_debug("%s: compare %u -> %d \n", 429 pr_debug("%s: compare %u -> %d\n",
430 dev_name(&spi->dev), addr, status); 430 dev_name(&spi->dev), addr, status);
431 431
432 status = dataflash_waitready(priv->spi); 432 status = dataflash_waitready(priv->spi);
@@ -906,14 +906,14 @@ static int __devinit dataflash_probe(struct spi_device *spi)
906 break; 906 break;
907 /* obsolete AT45DB1282 not (yet?) supported */ 907 /* obsolete AT45DB1282 not (yet?) supported */
908 default: 908 default:
909 pr_debug("%s: unsupported device (%x)\n", 909 pr_debug("%s: unsupported device (%x)\n", dev_name(&spi->dev),
910 dev_name(&spi->dev), status & 0x3c); 910 status & 0x3c);
911 status = -ENODEV; 911 status = -ENODEV;
912 } 912 }
913 913
914 if (status < 0) 914 if (status < 0)
915 pr_debug("%s: add_dataflash --> %d\n", 915 pr_debug("%s: add_dataflash --> %d\n", dev_name(&spi->dev),
916 dev_name(&spi->dev), status); 916 status);
917 917
918 return status; 918 return status;
919} 919}