Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 274826
b: refs/heads/master
c: ba6bead
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Eremin-Solenikov authored and Artem Bityutskiy committed Sep 11, 2011
1 parent 85ef9f5 commit fceb8aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 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: 5003403b87283a5e304e0248918ef678dbd24d59
refs/heads/master: ba6bead4469bec8a66f1764106f23890b2a267e2
6 changes: 1 addition & 5 deletions trunk/drivers/mtd/maps/intel_vr_nor.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ struct vr_nor_mtd {
void __iomem *csr_base;
struct map_info map;
struct mtd_info *info;
int nr_parts;
struct pci_dev *dev;
};

Expand All @@ -71,12 +70,9 @@ static void __devexit vr_nor_destroy_partitions(struct vr_nor_mtd *p)

static int __devinit vr_nor_init_partitions(struct vr_nor_mtd *p)
{
struct mtd_partition *parts;

/* register the flash bank */
/* partition the flash bank */
p->nr_parts = parse_mtd_partitions(p->info, NULL, &parts, 0);
return mtd_device_register(p->info, parts, p->nr_parts);
return mtd_device_parse_register(p->info, NULL, 0, NULL, 0);
}

static void __devexit vr_nor_destroy_mtd_setup(struct vr_nor_mtd *p)
Expand Down

0 comments on commit fceb8aa

Please sign in to comment.