Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755284AbdDOULc (ORCPT ); Sat, 15 Apr 2017 16:11:32 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:34951 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754334AbdDOUL0 (ORCPT ); Sat, 15 Apr 2017 16:11:26 -0400 From: Andrea Adami To: linux-mtd@lists.infradead.org Cc: David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger , Cyrille Pitchen , Dmitry Eremin-Solenikov , Robert Jarzmik , Linus Walleij , linux-kernel@vger.kernel.org Subject: [PATCH 2/3] mtd: nand: sharpsl.c: prefer sharpslpart MTD partition parser Date: Sat, 15 Apr 2017 22:11:17 +0200 Message-Id: <1492287078-22369-3-git-send-email-andrea.adami@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1492287078-22369-1-git-send-email-andrea.adami@gmail.com> References: <1492287078-22369-1-git-send-email-andrea.adami@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 995 Lines: 31 This is the specific parser for Sharp SL Series (Zaurus). Signed-off-by: Andrea Adami --- drivers/mtd/nand/sharpsl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/sharpsl.c b/drivers/mtd/nand/sharpsl.c index 064ca17..2d1ba0e 100644 --- a/drivers/mtd/nand/sharpsl.c +++ b/drivers/mtd/nand/sharpsl.c @@ -108,6 +108,8 @@ static int sharpsl_nand_calculate_ecc(struct mtd_info *mtd, const u_char * dat, /* * Main initialization routine */ +static const char * const probes[] = { "sharpslpart", NULL }; + static int sharpsl_nand_probe(struct platform_device *pdev) { struct nand_chip *this; @@ -183,7 +185,7 @@ static int sharpsl_nand_probe(struct platform_device *pdev) /* Register the partitions */ mtd->name = "sharpsl-nand"; - err = mtd_device_parse_register(mtd, NULL, NULL, + err = mtd_device_parse_register(mtd, probes, NULL, data->partitions, data->nr_partitions); if (err) goto err_add; -- 2.7.4