diff options
Diffstat (limited to 'drivers/mtd/devices/m25p80.c')
-rw-r--r-- | drivers/mtd/devices/m25p80.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c index 6659b2275c0c..5733f0643843 100644 --- a/drivers/mtd/devices/m25p80.c +++ b/drivers/mtd/devices/m25p80.c | |||
@@ -170,7 +170,7 @@ static int wait_till_ready(struct m25p *flash) | |||
170 | static int erase_chip(struct m25p *flash) | 170 | static int erase_chip(struct m25p *flash) |
171 | { | 171 | { |
172 | DEBUG(MTD_DEBUG_LEVEL3, "%s: %s %dKiB\n", | 172 | DEBUG(MTD_DEBUG_LEVEL3, "%s: %s %dKiB\n", |
173 | flash->spi->dev.bus_id, __func__, | 173 | dev_name(&flash->spi->dev), __func__, |
174 | flash->mtd.size / 1024); | 174 | flash->mtd.size / 1024); |
175 | 175 | ||
176 | /* Wait until finished previous write command. */ | 176 | /* Wait until finished previous write command. */ |
@@ -197,7 +197,7 @@ static int erase_chip(struct m25p *flash) | |||
197 | static int erase_sector(struct m25p *flash, u32 offset) | 197 | static int erase_sector(struct m25p *flash, u32 offset) |
198 | { | 198 | { |
199 | DEBUG(MTD_DEBUG_LEVEL3, "%s: %s %dKiB at 0x%08x\n", | 199 | DEBUG(MTD_DEBUG_LEVEL3, "%s: %s %dKiB at 0x%08x\n", |
200 | flash->spi->dev.bus_id, __func__, | 200 | dev_name(&flash->spi->dev), __func__, |
201 | flash->mtd.erasesize / 1024, offset); | 201 | flash->mtd.erasesize / 1024, offset); |
202 | 202 | ||
203 | /* Wait until finished previous write command. */ | 203 | /* Wait until finished previous write command. */ |
@@ -234,7 +234,7 @@ static int m25p80_erase(struct mtd_info *mtd, struct erase_info *instr) | |||
234 | u32 addr,len; | 234 | u32 addr,len; |
235 | 235 | ||
236 | DEBUG(MTD_DEBUG_LEVEL2, "%s: %s %s 0x%08x, len %d\n", | 236 | DEBUG(MTD_DEBUG_LEVEL2, "%s: %s %s 0x%08x, len %d\n", |
237 | flash->spi->dev.bus_id, __func__, "at", | 237 | dev_name(&flash->spi->dev), __func__, "at", |
238 | (u32)instr->addr, instr->len); | 238 | (u32)instr->addr, instr->len); |
239 | 239 | ||
240 | /* sanity checks */ | 240 | /* sanity checks */ |
@@ -295,7 +295,7 @@ static int m25p80_read(struct mtd_info *mtd, loff_t from, size_t len, | |||
295 | struct spi_message m; | 295 | struct spi_message m; |
296 | 296 | ||
297 | DEBUG(MTD_DEBUG_LEVEL2, "%s: %s %s 0x%08x, len %zd\n", | 297 | DEBUG(MTD_DEBUG_LEVEL2, "%s: %s %s 0x%08x, len %zd\n", |
298 | flash->spi->dev.bus_id, __func__, "from", | 298 | dev_name(&flash->spi->dev), __func__, "from", |
299 | (u32)from, len); | 299 | (u32)from, len); |
300 | 300 | ||
301 | /* sanity checks */ | 301 | /* sanity checks */ |
@@ -367,7 +367,7 @@ static int m25p80_write(struct mtd_info *mtd, loff_t to, size_t len, | |||
367 | struct spi_message m; | 367 | struct spi_message m; |
368 | 368 | ||
369 | DEBUG(MTD_DEBUG_LEVEL2, "%s: %s %s 0x%08x, len %zd\n", | 369 | DEBUG(MTD_DEBUG_LEVEL2, "%s: %s %s 0x%08x, len %zd\n", |
370 | flash->spi->dev.bus_id, __func__, "to", | 370 | dev_name(&flash->spi->dev), __func__, "to", |
371 | (u32)to, len); | 371 | (u32)to, len); |
372 | 372 | ||
373 | if (retlen) | 373 | if (retlen) |
@@ -563,7 +563,7 @@ static struct flash_info *__devinit jedec_probe(struct spi_device *spi) | |||
563 | tmp = spi_write_then_read(spi, &code, 1, id, 5); | 563 | tmp = spi_write_then_read(spi, &code, 1, id, 5); |
564 | if (tmp < 0) { | 564 | if (tmp < 0) { |
565 | DEBUG(MTD_DEBUG_LEVEL0, "%s: error %d reading JEDEC ID\n", | 565 | DEBUG(MTD_DEBUG_LEVEL0, "%s: error %d reading JEDEC ID\n", |
566 | spi->dev.bus_id, tmp); | 566 | dev_name(&spi->dev), tmp); |
567 | return NULL; | 567 | return NULL; |
568 | } | 568 | } |
569 | jedec = id[0]; | 569 | jedec = id[0]; |
@@ -617,7 +617,7 @@ static int __devinit m25p_probe(struct spi_device *spi) | |||
617 | /* unrecognized chip? */ | 617 | /* unrecognized chip? */ |
618 | if (i == ARRAY_SIZE(m25p_data)) { | 618 | if (i == ARRAY_SIZE(m25p_data)) { |
619 | DEBUG(MTD_DEBUG_LEVEL0, "%s: unrecognized id %s\n", | 619 | DEBUG(MTD_DEBUG_LEVEL0, "%s: unrecognized id %s\n", |
620 | spi->dev.bus_id, data->type); | 620 | dev_name(&spi->dev), data->type); |
621 | info = NULL; | 621 | info = NULL; |
622 | 622 | ||
623 | /* recognized; is that chip really what's there? */ | 623 | /* recognized; is that chip really what's there? */ |
@@ -658,7 +658,7 @@ static int __devinit m25p_probe(struct spi_device *spi) | |||
658 | if (data && data->name) | 658 | if (data && data->name) |
659 | flash->mtd.name = data->name; | 659 | flash->mtd.name = data->name; |
660 | else | 660 | else |
661 | flash->mtd.name = spi->dev.bus_id; | 661 | flash->mtd.name = dev_name(&spi->dev); |
662 | 662 | ||
663 | flash->mtd.type = MTD_NORFLASH; | 663 | flash->mtd.type = MTD_NORFLASH; |
664 | flash->mtd.writesize = 1; | 664 | flash->mtd.writesize = 1; |