Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252539
b: refs/heads/master
c: 8814687
h: refs/heads/master
i:
  252537: 68c9758
  252535: 255ec21
v: v3
  • Loading branch information
Jamie Iles authored and David Woodhouse committed May 25, 2011
1 parent 2e5a3c5 commit 6262922
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 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: 63c9dd92579fbaa59fead0e9b75dd7db43130d21
refs/heads/master: 88146872f0fbd89e425e3e0db71d42df8db9d932
7 changes: 1 addition & 6 deletions trunk/drivers/mtd/nand/bf5xx_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -659,15 +659,10 @@ static int bf5xx_nand_hw_init(struct bf5xx_nand_info *info)
static int __devinit bf5xx_nand_add_partition(struct bf5xx_nand_info *info)
{
struct mtd_info *mtd = &info->mtd;

#ifdef CONFIG_MTD_PARTITIONS
struct mtd_partition *parts = info->platform->partitions;
int nr = info->platform->nr_partitions;

return add_mtd_partitions(mtd, parts, nr);
#else
return add_mtd_device(mtd);
#endif
return mtd_device_register(mtd, parts, nr);
}

static int __devexit bf5xx_nand_remove(struct platform_device *pdev)
Expand Down

0 comments on commit 6262922

Please sign in to comment.