Skip to contentSkip to conversation

davinci_nand: cmdlinepart uses MTD IDs

PATCH In review David Brownell 2 participants 2 messages May 12, 2009 – May 15, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 davinci_nand: cmdlinepart uses MTD IDs

From: David Brownell <[email protected]>

Remove some legacy code from the davinci_nand driver, which made cmdlinepart ignore the the MTD ID passed to it. Boards can have multiple NAND chips, and some do (like the DM357 EVM), so this dated hack is undesirable.

Correct labels a"re like davinci_nand.0" (for chipselect 0).

---
 drivers/mtd/nand/davinci_nand.c |   11 -----------
 1 file changed, 11 deletions(-)
drivers/mtd/nand/davinci_nand.c +0 -11
@@ -718,19 +718,8 @@ syndrome_done:
 			static const char *probes[] __initconst =
 				{ "cmdlinepart", NULL };
 
-			const char		*master_name;
-
-			/* Set info->mtd.name = 0 temporarily */
-			master_name		= info->mtd.name;
-			info->mtd.name		= (char *)0;
-
-			/* info->mtd.name == 0, means: don't bother checking
-			   <mtd-id> */
 			mtd_parts_nb = parse_mtd_partitions(&info->mtd, probes,
 							    &mtd_parts, 0);
-
-			/* Restore info->mtd.name */
-			info->mtd.name = master_name;
 		}
 
 		if (mtd_parts_nb <= 0) {
#1 lore raw
Quoted 10 lines · David Brownell

From: David Brownell <[email protected]>

Remove some legacy code from the davinci_nand driver, which made cmdlinepart ignore the the MTD ID passed to it. Boards can have multiple NAND chips, and some do (like the DM357 EVM), so this dated hack is undesirable.

Correct labels a"re like davinci_nand.0" (for chipselect 0).

Taken to l2-mtd-2.6.git.

Signature · 2 lines
Best regards,
Artem Bityutskiy (Битюцкий Артём)