From patchwork Mon Jun 27 12:58:01 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 102157 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 9B7F8B6F54 for ; Mon, 27 Jun 2011 22:58:33 +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 1QbBOG-00088U-TS; Mon, 27 Jun 2011 12:58:13 +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 1QbBOG-0007AS-Ey; Mon, 27 Jun 2011 12:58:12 +0000 Received: from mail-wy0-f177.google.com ([74.125.82.177]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QbBOC-00079r-Ri for linux-mtd@lists.infradead.org; Mon, 27 Jun 2011 12:58:11 +0000 Received: by wyf23 with SMTP id 23so3944376wyf.36 for ; Mon, 27 Jun 2011 05:58:07 -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; bh=917Z70G1VLaxg4y+DysMxPI2yU5MCvH+niY7haVHRNM=; b=rTAf6UeV9COth1JQc9SXbRuC0izXe9OuykjKkqq70ckIfKfnb1OkWDwXzmZHWm+CG5 IDcGAX51we8O9Acuoge7LWG/g/V6jchYMM/8zVv2eX4F9fmIwyNE9j4+3BL59C6jbk7h a1WQGpamXzz8yDD7yk/JTtmX1oz/3GzopKsjM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=dB0qevImGqW5SBvgW+uY8Vx8RcSJ9M7b5nXQurUqjLDPFDtO9wt1ypYs448R2rnjUp FShaXajEHcniYSurgfX981G10fvaKvX6H1KBmHAENPtyGVFWSFpH8kgxAiIM5TYw6OyE T857YeZasN89pfqQhdqYZMjfD7g4b+ma1ZXLo= Received: by 10.216.68.6 with SMTP id k6mr2263253wed.85.1309179486966; Mon, 27 Jun 2011 05:58:06 -0700 (PDT) Received: from doriath.ww600.siemens.net ([91.213.169.4]) by mx.google.com with ESMTPS id g4sm2755789weg.12.2011.06.27.05.58.03 (version=SSLv3 cipher=OTHER); Mon, 27 Jun 2011 05:58:06 -0700 (PDT) From: Dmitry Eremin-Solenikov To: linux-mtd@lists.infradead.org Subject: [PATCH] mtd: tmio_nand should call mtd_device_parse_register Date: Mon, 27 Jun 2011 16:58:01 +0400 Message-Id: <1309179481-30957-1-git-send-email-dbaryshkov@gmail.com> X-Mailer: git-send-email 1.7.5.4 X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110627_085809_976926_43C6951D X-CRM114-Status: GOOD ( 13.30 ) 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.177 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (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 T_TO_NO_BRKTS_FREEMAIL T_TO_NO_BRKTS_FREEMAIL Cc: David Woodhouse , 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 While patching tmio_nand for mtd_device_parse_register(), I've changed it to correctly pass arguments, but didn't change the function call itself, so correct that mistake. Signed-off-by: Dmitry Eremin-Solenikov --- drivers/mtd/nand/tmio_nand.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mtd/nand/tmio_nand.c b/drivers/mtd/nand/tmio_nand.c index d476857..beebd95 100644 --- a/drivers/mtd/nand/tmio_nand.c +++ b/drivers/mtd/nand/tmio_nand.c @@ -456,7 +456,7 @@ static int tmio_probe(struct platform_device *dev) goto err_scan; } /* Register the partitions */ - retval = mtd_device_register(mtd, NULL, 0, + retval = mtd_device_parse_register(mtd, NULL, 0, data ? data->partition : NULL, data ? data->num_partitions : 0); if (!retval)