Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 274787
b: refs/heads/master
c: 8d3f8bb
h: refs/heads/master
i:
  274785: de14b80
  274783: 8edb4c9
v: v3
  • Loading branch information
Dmitry Eremin-Solenikov authored and Artem Bityutskiy committed Sep 11, 2011
1 parent 3cb5de1 commit 3a0e331
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a8e083246387ffb9a84551fa908a358cacdc2b0c
refs/heads/master: 8d3f8bb8093080d4e2b1de096af444b694a16766
11 changes: 2 additions & 9 deletions trunk/drivers/mtd/nand/fsmc_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,6 @@ static struct mtd_partition partition_info_128KB_blk[] = {
},
};

#ifdef CONFIG_MTD_CMDLINE_PARTS
const char *part_probes[] = { "cmdlinepart", NULL };
#endif

/**
* struct fsmc_nand_data - structure for FSMC NAND device state
Expand Down Expand Up @@ -716,15 +713,13 @@ static int __init fsmc_nand_probe(struct platform_device *pdev)
* platform data,
* default partition information present in driver.
*/
#ifdef CONFIG_MTD_CMDLINE_PARTS
/*
* Check if partition info passed via command line
* Check for partition info passed
*/
host->mtd.name = "nand";
host->nr_partitions = parse_mtd_partitions(&host->mtd, part_probes,
host->nr_partitions = parse_mtd_partitions(&host->mtd, NULL,
&host->partitions, 0);
if (host->nr_partitions <= 0) {
#endif
/*
* Check if partition info passed via command line
*/
Expand Down Expand Up @@ -769,9 +764,7 @@ static int __init fsmc_nand_probe(struct platform_device *pdev)
}
}
}
#ifdef CONFIG_MTD_CMDLINE_PARTS
}
#endif

ret = mtd_device_register(&host->mtd, host->partitions,
host->nr_partitions);
Expand Down

0 comments on commit 3a0e331

Please sign in to comment.