mtd: sst25l: remove unnecessary MTD_DEBUG_LEVEL2 messages

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Mon May 10 13:59:03 EDT 2010


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=29da3380de40e8aa908eb70fa09a54c288b0b3f4
Commit:     29da3380de40e8aa908eb70fa09a54c288b0b3f4
Parent:     eafe1311aa3cdb13efa25c60251bce12e60ae38a
Author:     H Hartley Sweeten <hartleys at visionengravers.com>
AuthorDate: Thu Apr 29 17:52:57 2010 -0500
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Mon May 10 14:27:08 2010 +0100

    mtd: sst25l: remove unnecessary MTD_DEBUG_LEVEL2 messages
    
    All the SST25L series flash parts have uniform erase sectors.  Remove
    the extra MTD_DEBUG_LEVEL2 messages showing the eraseregions info
    since they could never be shown.
    
    Signed-off-by: H Hartley Sweeten <hsweeten at visionengravers.com>
    Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/devices/sst25l.c |   11 -----------
 1 files changed, 0 insertions(+), 11 deletions(-)

diff --git a/drivers/mtd/devices/sst25l.c b/drivers/mtd/devices/sst25l.c
index 0a11721..175c523 100644
--- a/drivers/mtd/devices/sst25l.c
+++ b/drivers/mtd/devices/sst25l.c
@@ -410,17 +410,6 @@ static int __init sst25l_probe(struct spi_device *spi)
 	      flash->mtd.erasesize, flash->mtd.erasesize / 1024,
 	      flash->mtd.numeraseregions);
 
-	if (flash->mtd.numeraseregions)
-		for (i = 0; i < flash->mtd.numeraseregions; i++)
-			DEBUG(MTD_DEBUG_LEVEL2,
-			      "mtd.eraseregions[%d] = { .offset = 0x%llx, "
-			      ".erasesize = 0x%.8x (%uKiB), "
-			      ".numblocks = %d }\n",
-			      i, (long long)flash->mtd.eraseregions[i].offset,
-			      flash->mtd.eraseregions[i].erasesize,
-			      flash->mtd.eraseregions[i].erasesize / 1024,
-			      flash->mtd.eraseregions[i].numblocks);
-
 	if (mtd_has_partitions()) {
 		struct mtd_partition *parts = NULL;
 		int nr_parts = 0;



More information about the linux-mtd-cvs mailing list