Skip to content

Commit fe18e22

Browse files
committed
mtd: spi-nor: drop superfluous debug prints
The mtd data shall be obtained with the mtd ioctls or with new debugfs entries if one cares. Drop the debug prints. Reviewed-by: Michael Walle <michael@walle.cc> Link: https://lore.kernel.org/r/20231215082138.16063-5-tudor.ambarus@linaro.org Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
1 parent fc2efaf commit fe18e22

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

drivers/mtd/spi-nor/core.c

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3492,9 +3492,7 @@ int spi_nor_scan(struct spi_nor *nor, const char *name,
34923492
{
34933493
const struct flash_info *info;
34943494
struct device *dev = nor->dev;
3495-
struct mtd_info *mtd = &nor->mtd;
34963495
int ret;
3497-
int i;
34983496

34993497
ret = spi_nor_check(nor);
35003498
if (ret)
@@ -3561,22 +3559,6 @@ int spi_nor_scan(struct spi_nor *nor, const char *name,
35613559
dev_dbg(dev, "Manufacturer and device ID: %*phN\n",
35623560
SPI_NOR_MAX_ID_LEN, nor->id);
35633561

3564-
dev_dbg(dev,
3565-
"mtd .name = %s, .size = 0x%llx (%lldMiB), "
3566-
".erasesize = 0x%.8x (%uKiB) .numeraseregions = %d\n",
3567-
mtd->name, (long long)mtd->size, (long long)(mtd->size >> 20),
3568-
mtd->erasesize, mtd->erasesize / 1024, mtd->numeraseregions);
3569-
3570-
if (mtd->numeraseregions)
3571-
for (i = 0; i < mtd->numeraseregions; i++)
3572-
dev_dbg(dev,
3573-
"mtd.eraseregions[%d] = { .offset = 0x%llx, "
3574-
".erasesize = 0x%.8x (%uKiB), "
3575-
".numblocks = %d }\n",
3576-
i, (long long)mtd->eraseregions[i].offset,
3577-
mtd->eraseregions[i].erasesize,
3578-
mtd->eraseregions[i].erasesize / 1024,
3579-
mtd->eraseregions[i].numblocks);
35803562
return 0;
35813563
}
35823564
EXPORT_SYMBOL_GPL(spi_nor_scan);

0 commit comments

Comments
 (0)