X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=drivers%2Fmtd%2Fmaps%2Fesb2rom.c;h=08322b1c3e8149220de252005ed477e624f60e5d;hb=2dfea3803dcf70983d14ce1dcbb3e97a7459a28b;hp=4feb7507ab7c9a4906f66a735a176668e665656a;hpb=c3ca48f062a37c2f79560a9b0b9f1b08039aa248;p=deliverable%2Flinux.git diff --git a/drivers/mtd/maps/esb2rom.c b/drivers/mtd/maps/esb2rom.c index 4feb7507ab7c..08322b1c3e81 100644 --- a/drivers/mtd/maps/esb2rom.c +++ b/drivers/mtd/maps/esb2rom.c @@ -128,7 +128,7 @@ static void esb2rom_cleanup(struct esb2rom_window *window) list_for_each_entry_safe(map, scratch, &window->maps, list) { if (map->rsrc.parent) release_resource(&map->rsrc); - del_mtd_device(map->mtd); + mtd_device_unregister(map->mtd); map_destroy(map->mtd); list_del(&map->list); kfree(map); @@ -352,7 +352,7 @@ static int __devinit esb2rom_init_one(struct pci_dev *pdev, /* Now that the mtd devices is complete claim and export it */ map->mtd->owner = THIS_MODULE; - if (add_mtd_device(map->mtd)) { + if (mtd_device_register(map->mtd, NULL, 0)) { map_destroy(map->mtd); map->mtd = NULL; goto out;