From patchwork Thu Apr 29 22:52:57 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hartley Sweeten X-Patchwork-Id: 51306 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 5897AB7D4E for ; Fri, 30 Apr 2010 08:56:12 +1000 (EST) Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1O7cbS-0004V2-Ut; Thu, 29 Apr 2010 22:53:06 +0000 Received: from p01c11o149.mxlogic.net ([208.65.144.72]) by bombadil.infradead.org with esmtps (Exim 4.69 #1 (Red Hat Linux)) id 1O7cbO-0004LG-1A for linux-mtd@lists.infradead.org; Thu, 29 Apr 2010 22:53:04 +0000 Received: from unknown [216.166.12.31] by p01c11o149.mxlogic.net(mxl_mta-6.5.0-2) with SMTP id bcd0adb4.0.57085.00-006.127663.p01c11o149.mxlogic.net (envelope-from ); Thu, 29 Apr 2010 16:53:01 -0600 (MDT) X-MXL-Hash: 4bda0dcd34c5a44f-4b773d61d12abd177b9a32f3407651f8241e8fa7 Received: from AUSP01VMBX24.collaborationhost.net ([10.2.12.1]) by AUSP01MHUB01.collaborationhost.net ([10.2.8.25]) with mapi; Thu, 29 Apr 2010 17:52:57 -0500 From: H Hartley Sweeten To: "linux-mtd@lists.infradead.org" , Linux Kernel Date: Thu, 29 Apr 2010 17:52:57 -0500 Subject: [PATCH] sst25l.c: remove unnecessary MTD_DEBUG_LEVEL2 messages Thread-Topic: [PATCH] sst25l.c: remove unnecessary MTD_DEBUG_LEVEL2 messages Thread-Index: Acrn7rX+O8XanUevTaGL8hiGERGvQw== Message-ID: <0D753D10438DA54287A00B0270842697636E825604@AUSP01VMBX24.collaborationhost.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 X-Spam: [F=0.2000000000; CM=0.500; S=0.200(2010042901)] X-MAIL-FROM: X-SOURCE-IP: [(unknown)] X-AnalysisOut: [v=1.0 c=1 a=18M4pvXJG48A:10 a=VphdPIyG4kEA:10 a=IkcTkHD0fZ] X-AnalysisOut: [MA:10 a=qS3xps/WtSuafY8lc/WARg==:17 a=i00gxMtYAAAA:8 a=Jfr] X-AnalysisOut: [nYn6hAAAA:8 a=rggnVFrEAAAA:8 a=utEqgGsK5cjNjDICSCAA:9 a=E8] X-AnalysisOut: [FvgW13WJUA6VtHz8oA:7 a=F4C1e5et9FwBedBPNqP4oI6CVsMA:4 a=QE] X-AnalysisOut: [XdDO2ut3YA:10 a=x1WnkoZAwusA:10 a=3Rfx1nUSh_UA:10 a=ct-hs6] X-AnalysisOut: [iedJYA:10] X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20100429_185302_189607_C6BEA569 X-CRM114-Status: GOOD ( 10.08 ) X-Spam-Score: -2.3 (--) X-Spam-Report: SpamAssassin version 3.3.1 on bombadil.infradead.org summary: Content analysis details: (-2.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [208.65.144.72 listed in list.dnswl.org] Cc: "ryan@bluewatersys.com" , "andre@bluewatersys.com" , David Woodhouse X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org 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 Cc: David Woodhouse Cc: Andre Renaud Cc: Ryan Mallon diff --git a/drivers/mtd/devices/sst25l.c b/drivers/mtd/devices/sst25l.c index fe17054..bcf040b 100644 --- a/drivers/mtd/devices/sst25l.c +++ b/drivers/mtd/devices/sst25l.c @@ -411,17 +411,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;