From patchwork Wed Jun 8 13:01:37 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 99421 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id EB097B6FA0 for ; Wed, 8 Jun 2011 23:02:02 +1000 (EST) Received: from canuck.infradead.org ([2001:4978:20e::1]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QUIOO-0001i7-I9; Wed, 08 Jun 2011 13:01:52 +0000 Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1QUIOO-0003dA-4p; Wed, 08 Jun 2011 13:01:52 +0000 Received: from mail-pz0-f49.google.com ([209.85.210.49]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QUIOK-0003cq-HO for linux-mtd@lists.infradead.org; Wed, 08 Jun 2011 13:01:49 +0000 Received: by pzk28 with SMTP id 28so317585pzk.36 for ; Wed, 08 Jun 2011 06:01:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:from:to:cc:content-type:date:message-id :mime-version:x-mailer:content-transfer-encoding; bh=TWZHo6stNnLrLKZjJ2AUWh995ATVlDwc6uWcl0AQja0=; b=mrRywMCnpPi5jqkjdk35XJ+NfM+qOkPJzzy7r9MrQXhbZ64u4Yr8xcFsas4sKvPjth LUAtWK8WAc0CWk6bE+xxY15i3As8L+ha+eStC/gCtVWOvYWV5yE0V835Nc3tnjBVHkZw IBKprAwcZq4tx41GGwNdsIqIZ0X+IGshvDAXc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; b=Nz/nLdYtKisSloqnHMa/a4aVhbJuCgInI4r3hypsZdvmfLgT/wauUCfSUoW8NIYbU2 t6i1HjAMrPQexRJVVf+LogrJj7XZygCJ2SsXJ5weg+DcJV5vrQASi4j5w1cpQpoGMHrr opolMSbtWK54d5lKnYTxs2EA+O02uyVlcqhDE= Received: by 10.68.51.2 with SMTP id g2mr552866pbo.495.1307538104911; Wed, 08 Jun 2011 06:01:44 -0700 (PDT) Received: from [59.112.85.198] (59-112-85-198.dynamic.hinet.net [59.112.85.198]) by mx.google.com with ESMTPS id b8sm497866pbj.94.2011.06.08.06.01.41 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 08 Jun 2011 06:01:43 -0700 (PDT) Subject: [PATCH] mtd: davinci_nand: remove redundant mtd_device_unregister in nand_davinci_remove From: Axel Lin To: linux-kernel@vger.kernel.org Date: Wed, 08 Jun 2011 21:01:37 +0800 Message-ID: <1307538097.17552.4.camel@phoenix> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110608_090148_940583_BCD1F27A X-CRM114-Status: GOOD ( 12.84 ) X-Spam-Score: -0.8 (/) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (-0.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is freemail (axel.lin[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.210.49 listed in list.dnswl.org] -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 0.0 RFC_ABUSE_POST Both abuse and postmaster missing on sender domain 0.0 T_TO_NO_BRKTS_FREEMAIL T_TO_NO_BRKTS_FREEMAIL Cc: Artem Bityutskiy , David Woodhouse , linux-mtd@lists.infradead.org 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 mtd_device_unregister is done in nand_release(), thus no need to call it in nand_davinci_remove(). Signed-off-by: Axel Lin --- drivers/mtd/nand/davinci_nand.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/nand/davinci_nand.c b/drivers/mtd/nand/davinci_nand.c index 0c582ed..70c92a5 100644 --- a/drivers/mtd/nand/davinci_nand.c +++ b/drivers/mtd/nand/davinci_nand.c @@ -811,9 +811,6 @@ err_nomem: static int __exit nand_davinci_remove(struct platform_device *pdev) { struct davinci_nand_info *info = platform_get_drvdata(pdev); - int status; - - status = mtd_device_unregister(&info->mtd); spin_lock_irq(&davinci_nand_lock); if (info->chip.ecc.mode == NAND_ECC_HW_SYNDROME)