From f0cc422638dfb419cd5d6bddef0f6f02f07b3a97 Mon Sep 17 00:00:00 2001 From: Dmitry Eremin-Solenikov Date: Sun, 29 May 2011 20:17:02 +0400 Subject: [PATCH] --- yaml --- r: 274793 b: refs/heads/master c: 2aedf3e982c1b0177710c87e2f199624d07abc8e h: refs/heads/master i: 274791: 88e84243b8d4058df2b56c9979744eedb06e85d4 v: v3 --- [refs] | 2 +- trunk/drivers/mtd/nand/ndfc.c | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/[refs] b/[refs] index 61a242c848bf..cc53a0b38a40 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 5279fe36fa4c5e3f33b25111c1cbf08386e78d06 +refs/heads/master: 2aedf3e982c1b0177710c87e2f199624d07abc8e diff --git a/trunk/drivers/mtd/nand/ndfc.c b/trunk/drivers/mtd/nand/ndfc.c index ea2dea8a9c88..cb66fd79f1fa 100644 --- a/trunk/drivers/mtd/nand/ndfc.c +++ b/trunk/drivers/mtd/nand/ndfc.c @@ -159,11 +159,6 @@ static int ndfc_verify_buf(struct mtd_info *mtd, const uint8_t *buf, int len) static int ndfc_chip_init(struct ndfc_controller *ndfc, struct device_node *node) { -#ifdef CONFIG_MTD_CMDLINE_PARTS - static const char *part_types[] = { "cmdlinepart", NULL }; -#else - static const char *part_types[] = { NULL }; -#endif struct device_node *flash_np; struct nand_chip *chip = &ndfc->chip; int ret; @@ -204,7 +199,7 @@ static int ndfc_chip_init(struct ndfc_controller *ndfc, if (ret) goto err; - ret = parse_mtd_partitions(&ndfc->mtd, part_types, &ndfc->parts, 0); + ret = parse_mtd_partitions(&ndfc->mtd, NULL, &ndfc->parts, 0); if (ret < 0) goto err;