Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27928
b: refs/heads/master
c: b6d5ee0
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner authored and David Woodhouse committed Jun 20, 2006
1 parent a4c79c3 commit afcb7af
Show file tree
Hide file tree
Showing 2 changed files with 5 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: ad3b5fb772e6a824f1ac341eb8e392eca6fc524f
refs/heads/master: b6d5ee00e397b20dc88f7ffaa6f7651b71996a5c
13 changes: 4 additions & 9 deletions trunk/drivers/mtd/nand/ndfc.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,16 +203,11 @@ static int ndfc_chip_probe(struct platform_device *pdev)
#ifdef CONFIG_MTD_PARTITIONS
printk("Number of partitions %d\n", nc->nr_partitions);
if (nc->nr_partitions) {
struct mtd_info *mtd_ubi;
nc->partitions[NAND_PARTS_CONTENT_IDX].mtdp = &mtd_ubi;

add_mtd_device(&nandmtd->mtd); /* for testing */
add_mtd_partitions(&nandmtd->mtd,
nc->partitions,
/* Add the full device, so complete dumps can be made */
add_mtd_device(&nandmtd->mtd);
add_mtd_partitions(&nandmtd->mtd, nc->partitions,
nc->nr_partitions);

add_mtd_device(mtd_ubi);

} else
#else
add_mtd_device(&nandmtd->mtd);
Expand All @@ -233,7 +228,7 @@ static int ndfc_nand_probe(struct platform_device *pdev)
struct ndfc_controller_settings *settings = nc->priv;
struct resource *res = pdev->resource;
struct ndfc_controller *ndfc = &ndfc_ctrl;
unsigned long long phys = setting->erpn | res->start;
unsigned long long phys = settings->ndfc_erpn | res->start;

ndfc->ndfcbase = ioremap64(phys, res->end - res->start + 1);
if (!ndfc->ndfcbase) {
Expand Down

0 comments on commit afcb7af

Please sign in to comment.