From patchwork Wed Jun 28 20:30:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea Adami X-Patchwork-Id: 9815453 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3611F60383 for ; Wed, 28 Jun 2017 20:39:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 26F6526222 for ; Wed, 28 Jun 2017 20:39:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 19EC02838B; Wed, 28 Jun 2017 20:39:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C606326222 for ; Wed, 28 Jun 2017 20:39:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=de0ywuBrICJwKx2Hy2myu33QpigaaFL6FtOVvak+LLc=; b=TGHYJheR2KF7JQjmLwozKvkGxP QP4+r4+R2yyB/U9cn92de2gYA07X1BbUoZIEGaPlHOKhCpU9wn9aU1U1adbANtwSy9Ij/Eg5Hc5bC rsFkedQECLJDWFWZIEWwPA18TPLk4oMS0sVSXs9XRCnQ8RScb0D9pheGWts8gsJwTzWeKCLtQtTcn riFuwCKhsqSBoI7z6Vk1TVSQvs3Uyt1MLt5gn5DrAyCPF5IiNwMK3oY7YeJXbUBsTCz19Ky7Cayy7 8nuNPvLyGBcCiNHtMJdYIubiJWlBjkD6ieoMuAMCV4qswa8/+jp4UZKANRho9hfEeGX6pp8R48czM fiveO+vw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dQJkX-0003eM-Ra; Wed, 28 Jun 2017 20:39:45 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dQJcA-0004CF-PD; Wed, 28 Jun 2017 20:31:08 +0000 Received: by mail-wm0-x241.google.com with SMTP id p204so8732297wmg.1; Wed, 28 Jun 2017 13:30:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=fUXEjUi/9n6rS/8M/gVmOoGwbora8jARihkvKYaOm6c=; b=A9ssaOJNX1PJmipNlTx93YS/DCwuxnDVDjKr7OMZnO/AfzugJzrZ+nGaYOFcVwrwej 48+sx0FqXX9OqnONcngcohkp3MmHf34+HRACE6WAZ4ML+/sszwfnRMVjGWSqA7Q+TjXP +xOZCVn3C7KHbNqeiE7F+dKT4WGLuZ1t8L9wEpWbiGzBa8dJvWEdDvGtxQt3I4pYLKGv 8Ht05hM5JbDfJKn6PHscquFKcpJVMRDxp45grBzcAoipkDSgXZkzZtkUCkXEn4u0nt3b VSOPquQrri26dYz0XLZ1gIpMoqZrrmMpj6V2Vejf8ZPpgCn4jJPigxH0sxIEY1flNRje u2+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=fUXEjUi/9n6rS/8M/gVmOoGwbora8jARihkvKYaOm6c=; b=BrYZTE9SHj+gdXVYRKN7nBRs02/o9S2eifPGCdkrLSNFo9hclMbokeenWE3qimennl zbzgidWPtIgIKkCzM3S2VCLLr0pcwoUUzcfwYLPjCPoS0aSeejf3qoveMKHcSvMf3RyW DgwniauGQ0LjBh6hsQ+m/bmI8tqqWLIMTd5S7L3fSZox4t1DGGDT6bmHJAOxvULD9cSs 6DpZ/cp02zN0uZO+wuoknfv2k7u9ztnl5LUvHAnrI7tIS84ePj5R7fg96D6E4c84nkzT ef23m5lUzmMfceGiS86z4JlTCWke+QCALKW0g2u58O8P45ij17/reyTQqPuJu1uuAVIG QaaQ== X-Gm-Message-State: AKS2vOx2qQkDFB4IahVkqVcyJQTRNVA4oKMbMaF5yXxRN5HCiOjqFTPq AkIlmFDa1ZN6OgTwgA0= X-Received: by 10.28.68.139 with SMTP id r133mr9097547wma.90.1498681845587; Wed, 28 Jun 2017 13:30:45 -0700 (PDT) Received: from andrea-ThinkPad-T520.homenet.telecomitalia.it (host251-139-dynamic.104-80-r.retail.telecomitalia.it. [80.104.139.251]) by smtp.gmail.com with ESMTPSA id h16sm10832684wma.14.2017.06.28.13.30.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 Jun 2017 13:30:44 -0700 (PDT) From: Andrea Adami To: linux-mtd@lists.infradead.org Subject: [PATCH v4 5/9] mtd: nand: tmio_nand.c: take in account partition parser types Date: Wed, 28 Jun 2017 22:30:32 +0200 Message-Id: <1498681836-3765-6-git-send-email-andrea.adami@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1498681836-3765-1-git-send-email-andrea.adami@gmail.com> References: <1498681836-3765-1-git-send-email-andrea.adami@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170628_133106_984714_4CAA2B21 X-CRM114-Status: GOOD ( 12.23 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Boris Brezillon , Wolfram Sang , Dmitry Eremin-Solenikov , Richard Weinberger , Robert Jarzmik , linux-mmc@vger.kernel.org, Russell King , Haojian Zhuang , linux-kernel@vger.kernel.org, Marek Vasut , linux-arm-kernel@lists.infradead.org, Cyrille Pitchen , Lee Jones , Brian Norris , David Woodhouse , Linus Walleij , Daniel Mack MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Andrea Adami --- drivers/mtd/nand/tmio_nand.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/tmio_nand.c b/drivers/mtd/nand/tmio_nand.c index fc5e773..6a53582 100644 --- a/drivers/mtd/nand/tmio_nand.c +++ b/drivers/mtd/nand/tmio_nand.c @@ -440,7 +440,9 @@ static int tmio_probe(struct platform_device *dev) goto err_irq; /* Register the partitions */ - retval = mtd_device_parse_register(mtd, NULL, NULL, + retval = mtd_device_parse_register(mtd, + data ? data->types : NULL, + NULL, data ? data->partition : NULL, data ? data->num_partitions : 0); if (!retval)