]> Pileus Git - ~andy/linux/blobdiff - drivers/mtd/maps/ichxrom.c
Merge tag 'for-linus-v3.6-rc7' of git://oss.sgi.com/xfs/xfs
[~andy/linux] / drivers / mtd / maps / ichxrom.c
index 1337a4191a0cc3a8086049c308d14abab25622a3..6689dcb3124d5d30cca8c1c2554fc4b40c8c485e 100644 (file)
@@ -67,7 +67,7 @@ static void ichxrom_cleanup(struct ichxrom_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);
@@ -287,7 +287,7 @@ static int __devinit ichxrom_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;