Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 274843
b: refs/heads/master
c: 5b55b1e
h: refs/heads/master
i:
  274841: 7d9cf14
  274839: 135cc69
v: v3
  • Loading branch information
Dmitry Eremin-Solenikov authored and Artem Bityutskiy committed Sep 11, 2011
1 parent 8cb368a commit 501c7a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 24 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: bbd86c9c33c8d1549cbad5077c5dbaeec8a5cae8
refs/heads/master: 5b55b1eb21a5aba9c6cf4e0325ac9e4dffa89435
25 changes: 2 additions & 23 deletions trunk/drivers/mtd/nand/davinci_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ struct davinci_nand_info {

struct device *dev;
struct clk *clk;
bool partitioned;

bool is_readmode;

Expand Down Expand Up @@ -530,8 +529,6 @@ static int __init nand_davinci_probe(struct platform_device *pdev)
int ret;
uint32_t val;
nand_ecc_modes_t ecc_mode;
struct mtd_partition *mtd_parts = NULL;
int mtd_parts_nb = 0;

/* insist on board-specific configuration */
if (!pdata)
Expand Down Expand Up @@ -753,26 +750,8 @@ static int __init nand_davinci_probe(struct platform_device *pdev)
if (ret < 0)
goto err_scan;

mtd_parts_nb = parse_mtd_partitions(&info->mtd, NULL, &mtd_parts, 0);

if (mtd_parts_nb <= 0) {
mtd_parts = pdata->parts;
mtd_parts_nb = pdata->nr_parts;
}

/* Register any partitions */
if (mtd_parts_nb > 0) {
ret = mtd_device_register(&info->mtd, mtd_parts,
mtd_parts_nb);
if (ret == 0)
info->partitioned = true;
}

/* If there's no partition info, just package the whole chip
* as a single MTD device.
*/
if (!info->partitioned)
ret = mtd_device_register(&info->mtd, NULL, 0) ? -ENODEV : 0;
ret = mtd_device_parse_register(&info->mtd, NULL, 0,
pdata->parts, pdata->nr_parts);

if (ret < 0)
goto err_scan;
Expand Down

0 comments on commit 501c7a0

Please sign in to comment.