From patchwork Wed May 31 22:40:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea Adami X-Patchwork-Id: 9758433 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 DCA9660360 for ; Wed, 31 May 2017 22:51:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CBE352766D for ; Wed, 31 May 2017 22:51:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BF494284D2; Wed, 31 May 2017 22:51:09 +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 BD9D02766D for ; Wed, 31 May 2017 22:51:08 +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=GW60he3JhEjZsAXCXrcCHM87gLbtlSXG+iUw2tmiJJo=; b=Dgcl6pP26mGPgP1NbF0EnId2mA WH8Ab3021cMtyK/Im+Jnko3RfD7+LsfBaRKxuOmxxpJx8LHYYHzK7x4wl7mVL6HfuwH99Ozut+QPV odgU7zFRYaPYrQWIdm6Tw2H+8YFzKALdZMfIJVjKMA2m9toMNEa/vfShHvjD801WUiX8j9XZJ/Lam GkGpWPSmRD43ORFaP3xXpmsqIkwllA2c8UqWrokNfatEHUbo1o4Vmcz34MqC9hr5SBAkuza+v9Qu1 p4eDEZwg3NxsNdpV6Ay0BgCNA7J9I+hJyW+WsjOPFzI0jGvWwwbrXJ/2pZjugaKrKAPFDF8F9Y0H4 d8ToA6sg==; 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 1dGCSJ-000587-Un; Wed, 31 May 2017 22:51:07 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dGCIx-0004gD-9k; Wed, 31 May 2017 22:41:29 +0000 Received: by mail-wm0-x242.google.com with SMTP id g15so6941208wmc.2; Wed, 31 May 2017 15:41:10 -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=FaalVhD+askbd+mcGSn8/WSCnr+mswsVhhLcNldzhcI=; b=giHhULkbsu5UAL7Rp3rZJuE71L0UvAK/wza1GI/5bZLz4SiNIu3awGuYJXJ+frFKKq x/ZDU2JnhxiY3fKNRQCnTFs6JDQ9+t2qWBexMXaAIkMvGhMgxD9ZatmWXEAmxQEzRxTO walO81hR14yTtZLvrwXbo3O4992SEu78ebIzCzLLvV0HF4ljHBPAcOQ4C/HwCy5N1/vz zRA75TiIVmVODlOyl7gbjZpuCNxC70esHcFIdoOiZxecgl7FjO2p6FsS9DyjtA9A5/d1 PLMA95zTAJ8lLqGv0D6cCFhHEP4J5veFx3fPIHa+/gTZ7bikIw8GYVztGfJtBc+PqFCJ 8y6A== 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=FaalVhD+askbd+mcGSn8/WSCnr+mswsVhhLcNldzhcI=; b=EUx31rSaNSBtApxGMkTeuBWxw+baTUwXtK4hq458gGFajZlyPdjzTgsBFwN2cZKn5a LJw72g2BXVDiwdLHzmdpD2pjz2IefQA9T8UVJDfWr0yWOo0YgZGvsY2VtacwK8JuJhON YlcX++sUNk84qhfmV5gNkMpjj8hMhawDTBzfO7n3uX+mEBRw72pLEWYBpA+Mv2qxx8oU JtNX1a3XLGDngDrh3dP6DySCKMfmbrxnU0xxROJShASwrev5LMFUKUZxBCP+dRMAnjPh 00L2CffyDFEsMWcnX2ivokuIqm2gvlYsmKOzbhdhzPbSv89f6oHukL4GnjliKGSMlQGb 73uQ== X-Gm-Message-State: AODbwcDYnMQxf6zlpTofQGgmdPyTXV8eZ8LRUq1uIc+XWwq3GBXCvL3J WuNPOGObur/mK03fzfI= X-Received: by 10.28.181.139 with SMTP id e133mr6491265wmf.65.1496270469464; Wed, 31 May 2017 15:41:09 -0700 (PDT) Received: from andrea-ThinkPad-T520.homenet.telecomitalia.it (host134-11-dynamic.32-79-r.retail.telecomitalia.it. [79.32.11.134]) by smtp.gmail.com with ESMTPSA id j1sm41840356wmf.6.2017.05.31.15.41.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 31 May 2017 15:41:08 -0700 (PDT) From: Andrea Adami To: linux-mtd@lists.infradead.org Subject: [PATCH v3 5/9] mtd: nand: tmio_nand.c: take in account partition parser types Date: Thu, 1 Jun 2017 00:40:54 +0200 Message-Id: <1496270458-6479-6-git-send-email-andrea.adami@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1496270458-6479-1-git-send-email-andrea.adami@gmail.com> References: <1496270458-6479-1-git-send-email-andrea.adami@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170531_154127_590612_261387B5 X-CRM114-Status: GOOD ( 12.41 ) 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..bea05bb 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->types ? data->types : NULL, + NULL, data ? data->partition : NULL, data ? data->num_partitions : 0); if (!retval)