]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
mtd: davinci_nand: cmdlinepart uses MTD IDs
authorDavid Brownell <dbrownell@users.sourceforge.net>
Tue, 12 May 2009 23:23:32 +0000 (16:23 -0700)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 5 Jun 2009 16:49:58 +0000 (17:49 +0100)
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 are like "davinci_nand.0" (for chipselect 0).

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/davinci_nand.c

index cb5a05e015314600e39ca8f776ec99c8d353137f..ba6940d1d3d11a8dbd9ba5d2660050e6e814b64b 100644 (file)
@@ -717,19 +717,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) {