From patchwork Mon Jun 6 14:04:16 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 98925 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 8671CB6FAB for ; Tue, 7 Jun 2011 00:05:28 +1000 (EST) Received: from canuck.infradead.org ([134.117.69.58]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QTaQY-0006Yu-Op; Mon, 06 Jun 2011 14:05:11 +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 1QTaQT-0005x0-6h; Mon, 06 Jun 2011 14:05:05 +0000 Received: from mail-ww0-f41.google.com ([74.125.82.41]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QTaPo-0005oy-GC for linux-mtd@lists.infradead.org; Mon, 06 Jun 2011 14:04:25 +0000 Received: by wwi18 with SMTP id 18so1446685wwi.0 for ; Mon, 06 Jun 2011 07:04:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=LmX+oF0UvT/crnYk+RmWbnRFacfNGHsZBF4YD/aaIHQ=; b=Bmvu1ebC4hgf+vEZHPBVo77jXGkQ94whVE5pT0/SGnXV+3MUd8JWCerb6qTG2YEUnS 4GjNoTROWTl3n7CGy3jrz9roF4wAZWY44zrGuqNA7yI2w+dhYtLn4WMyP2OU+6n4e4Hv PTY+8gx3TmD4CaPtfGkWmgQc4C3rQPOeTdll0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=cDjMTgqm0Wso7E6l0brDExp4AqEFcadJ27qxt02yqNN3a8MQECBlmpVcv3mmjlDSL+ W12D1ipQ2GHuDCGdpg1Y0eUzXHNZC+Mu6fo81EmD50L71XiPsGhcdPa/xJwxB886pL8V u8r3ri5CwW3ofV3JzCRVUpo2vHkj3y/qD6HTQ= Received: by 10.216.239.73 with SMTP id b51mr2474559wer.60.1307369062326; Mon, 06 Jun 2011 07:04:22 -0700 (PDT) Received: from doriath.ww600.siemens.net ([91.213.169.4]) by mx.google.com with ESMTPS id g2sm2320689weg.38.2011.06.06.07.04.20 (version=SSLv3 cipher=OTHER); Mon, 06 Jun 2011 07:04:21 -0700 (PDT) From: Dmitry Eremin-Solenikov To: linux-mtd@lists.infradead.org Subject: [PATCH 3/3] mtd: plat-nand: drop unused fields from platform_nand_data Date: Mon, 6 Jun 2011 18:04:16 +0400 Message-Id: <1307369056-29319-4-git-send-email-dbaryshkov@gmail.com> X-Mailer: git-send-email 1.7.4.4 In-Reply-To: <1307369056-29319-1-git-send-email-dbaryshkov@gmail.com> References: <1307369056-29319-1-git-send-email-dbaryshkov@gmail.com> X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110606_100424_725116_5488EB66 X-CRM114-Status: GOOD ( 13.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.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [74.125.82.41 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is freemail (dbaryshkov[at]gmail.com) -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: David Woodhouse , Russell King , dedekind1@gmail.com 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: , MIME-Version: 1.0 Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Drop now unused set_parts from struct platform_nand_data. Also, while we are at it, drop long unused priv field from platform_nand_data. Signed-off-by: Dmitry Eremin-Solenikov --- drivers/mtd/nand/plat_nand.c | 2 -- include/linux/mtd/nand.h | 2 -- 2 files changed, 0 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/nand/plat_nand.c b/drivers/mtd/nand/plat_nand.c index 633c04b..1339fa8 100644 --- a/drivers/mtd/nand/plat_nand.c +++ b/drivers/mtd/nand/plat_nand.c @@ -108,8 +108,6 @@ static int __devinit plat_nand_probe(struct platform_device *pdev) return 0; } } - if (pdata->chip.set_parts) - pdata->chip.set_parts(data->mtd.size, &pdata->chip); if (pdata->chip.partitions) { data->parts = pdata->chip.partitions; err = mtd_device_register(&data->mtd, data->parts, diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index 585d49b..da6e252 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h @@ -617,8 +617,6 @@ struct platform_nand_chip { int chip_delay; unsigned int options; const char **part_probe_types; - void (*set_parts)(uint64_t size, struct platform_nand_chip *chip); - void *priv; }; /* Keep gcc happy */