Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 274855
b: refs/heads/master
c: 3af55a8
h: refs/heads/master
i:
  274853: 9880823
  274851: 4ea9803
  274847: a4cbcf2
v: v3
  • Loading branch information
Dmitry Eremin-Solenikov authored and Artem Bityutskiy committed Sep 11, 2011
1 parent e1c74cb commit cd4b597
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: 599501a749a1ca3baa94ac9714f06782f63439b0
refs/heads/master: 3af55a89912e7e4b2a09d4c8c04fd884a6cf151f
11 changes: 2 additions & 9 deletions trunk/drivers/mtd/nand/sharpsl.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,6 @@ static int sharpsl_nand_calculate_ecc(struct mtd_info *mtd, const u_char * dat,
static int __devinit sharpsl_nand_probe(struct platform_device *pdev)
{
struct nand_chip *this;
struct mtd_partition *sharpsl_partition_info;
int nr_partitions;
struct resource *r;
int err = 0;
struct sharpsl_nand *sharpsl;
Expand Down Expand Up @@ -182,14 +180,9 @@ static int __devinit sharpsl_nand_probe(struct platform_device *pdev)

/* Register the partitions */
sharpsl->mtd.name = "sharpsl-nand";
nr_partitions = parse_mtd_partitions(&sharpsl->mtd, NULL, &sharpsl_partition_info, 0);
if (nr_partitions <= 0) {
nr_partitions = data->nr_partitions;
sharpsl_partition_info = data->partitions;
}

err = mtd_device_register(&sharpsl->mtd, sharpsl_partition_info,
nr_partitions);
err = mtd_device_parse_register(&sharpsl->mtd, NULL, 0,
data->partitions, data->nr_partitions);
if (err)
goto err_add;

Expand Down

0 comments on commit cd4b597

Please sign in to comment.