summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/maps/ceiva.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2011-06-03 10:41:03 +0200
committerIngo Molnar <mingo@elte.hu>2011-06-03 10:41:08 +0200
commit27eb4a1e4a56afacb0540c24084b9e0342f9956b (patch)
tree85bd26c6d7cdee8ee4c2d69d195f3e2bdbbc54fe /drivers/mtd/maps/ceiva.c
parentperf: De-schedule a task context when removing the last event (diff)
parentLinux 3.0-rc1 (diff)
downloadlinux-27eb4a1e4a56afacb0540c24084b9e0342f9956b.tar.xz
linux-27eb4a1e4a56afacb0540c24084b9e0342f9956b.zip
Merge commit 'v3.0-rc1' into perf/core
Merge reason: merge in the latest fixes. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'drivers/mtd/maps/ceiva.c')
-rw-r--r--drivers/mtd/maps/ceiva.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mtd/maps/ceiva.c b/drivers/mtd/maps/ceiva.c
index 23f551dc8ca8..06f9c9815720 100644
--- a/drivers/mtd/maps/ceiva.c
+++ b/drivers/mtd/maps/ceiva.c
@@ -224,7 +224,7 @@ static void __exit clps_destroy_mtd(struct clps_info *clps, struct mtd_info *mtd
{
int i;
- del_mtd_partitions(mtd);
+ mtd_device_unregister(mtd);
if (mtd != clps[0].mtd)
mtd_concat_destroy(mtd);
@@ -292,11 +292,11 @@ static void __init clps_locate_partitions(struct mtd_info *mtd)
if (nr_parts == 0) {
printk(KERN_NOTICE "clps flash: no partition info "
"available, registering whole flash\n");
- add_mtd_device(mtd);
+ mtd_device_register(mtd, NULL, 0);
} else {
printk(KERN_NOTICE "clps flash: using %s partition "
"definition\n", part_type);
- add_mtd_partitions(mtd, parsed_parts, nr_parts);
+ mtd_device_register(mtd, parsed_parts, nr_parts);
}
/* Always succeeds. */