diff options
author | Brian Norris <computersforpeace@gmail.com> | 2015-05-18 16:15:24 -0700 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2015-05-27 12:34:35 -0700 |
commit | 8bf57b0dd431e521d7b3f34e0681fbb2536e86b8 (patch) | |
tree | 10dc1d4767c5feff1ef8a8c15fecd7b3edafbe5e /drivers/mtd/nand/plat_nand.c | |
parent | db5b09f6ed9d7617e43d7140e8bd8649ec067862 (diff) | |
download | op-kernel-dev-8bf57b0dd431e521d7b3f34e0681fbb2536e86b8.zip op-kernel-dev-8bf57b0dd431e521d7b3f34e0681fbb2536e86b8.tar.gz |
mtd: plat_nand: use default partition probe
It's harmless to add 'ofpart' (the only different parser supported in
default mtdpart.c) to plat_nand. That let's us kill off one more custom
partition prober listing.
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/nand/plat_nand.c')
-rw-r--r-- | drivers/mtd/nand/plat_nand.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mtd/nand/plat_nand.c b/drivers/mtd/nand/plat_nand.c index 4535c26..717cf62 100644 --- a/drivers/mtd/nand/plat_nand.c +++ b/drivers/mtd/nand/plat_nand.c @@ -24,8 +24,6 @@ struct plat_nand_data { void __iomem *io_base; }; -static const char *part_probe_types[] = { "cmdlinepart", NULL }; - /* * Probe for the NAND device. */ @@ -95,7 +93,7 @@ static int plat_nand_probe(struct platform_device *pdev) goto out; } - part_types = pdata->chip.part_probe_types ? : part_probe_types; + part_types = pdata->chip.part_probe_types; ppdata.of_node = pdev->dev.of_node; err = mtd_device_parse_register(&data->mtd, part_types, &ppdata, |