From patchwork Wed Sep 4 18:25:15 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 272696 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from casper.infradead.org (unknown [IPv6:2001:770:15f::2]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 16A452C00D4 for ; Thu, 5 Sep 2013 04:26:30 +1000 (EST) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VHHmK-0005NH-M7; Wed, 04 Sep 2013 18:26:08 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VHHmI-0004nn-WE; Wed, 04 Sep 2013 18:26:07 +0000 Received: from mail-ie0-x22d.google.com ([2607:f8b0:4001:c03::22d]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VHHmG-0004mS-71 for linux-mtd@lists.infradead.org; Wed, 04 Sep 2013 18:26:04 +0000 Received: by mail-ie0-f173.google.com with SMTP id qa5so1222580ieb.4 for ; Wed, 04 Sep 2013 11:25:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ox+ZhfO3bqZW9CPG+hzBt3XgR8yUZRjj2tKNXJpY0nA=; b=EOk7N4BAJiN473KVbRBbnd5oIXf/qzr8XHULkJEmYpFogxmmrIuXyO0/ubkL34opCg 3IMJD10NViWNyMImEh9o9wJME2v2vt35f/huxirhB+ccRgJ71LWBfg3Vbe/VsecJ+WGX irWncNdr/6HO3SSItobZMwVD4tdTesGwotafljOsbkovEvMwHOaZdRLkID8t+sDX+pCm pida+CDOjqvUnF4SJ1iThtkmvuhFI8ggKuenVPoTNORuhjVHAQksYrJ707vcUzc1HQb1 CJP3gI0NtjOr3MEGcb2hR14CICnX3Z3vE8uLUKskbZWjIFpuKZ1dDo9g+9zpUxIL6YLw wUKg== X-Received: by 10.43.84.69 with SMTP id aj5mr1787138icc.45.1378319143215; Wed, 04 Sep 2013 11:25:43 -0700 (PDT) Received: from ld-irv-0074.broadcom.com (5520-maca-inet1-outside.broadcom.com. [216.31.211.11]) by mx.google.com with ESMTPSA id ka5sm4978938igb.2.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 04 Sep 2013 11:25:42 -0700 (PDT) From: Brian Norris To: Subject: [PATCH 01/12] nand: docg4: use nand_base's default BBT scan Date: Wed, 4 Sep 2013 11:25:15 -0700 Message-Id: <1378319126-24473-2-git-send-email-computersforpeace@gmail.com> X-Mailer: git-send-email 1.8.4 In-Reply-To: <1378319126-24473-1-git-send-email-computersforpeace@gmail.com> References: <1378319126-24473-1-git-send-email-computersforpeace@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130904_142604_346095_0229E477 X-CRM114-Status: GOOD ( 10.28 ) X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (computersforpeace[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Brian Norris X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org There's no point in the low level driver doing the work that nand_base already is doing; just let nand_base set the default BBT scanning function. Signed-off-by: Brian Norris Acked-by: Mike Dunn --- drivers/mtd/nand/docg4.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mtd/nand/docg4.c b/drivers/mtd/nand/docg4.c index 548db23..7c38b8a 100644 --- a/drivers/mtd/nand/docg4.c +++ b/drivers/mtd/nand/docg4.c @@ -1239,7 +1239,6 @@ static void __init init_mtd_structs(struct mtd_info *mtd) nand->block_markbad = docg4_block_markbad; nand->read_buf = docg4_read_buf; nand->write_buf = docg4_write_buf16; - nand->scan_bbt = nand_default_bbt; nand->erase_cmd = docg4_erase_block; nand->ecc.read_page = docg4_read_page; nand->ecc.write_page = docg4_write_page;