]> Pileus Git - ~andy/linux/blobdiff - drivers/mtd/maps/octagon-5066.c
Merge branch 'slab/common-for-cgroups' into slab/for-linus
[~andy/linux] / drivers / mtd / maps / octagon-5066.c
index 23fe1786770f140c686215cc05925a5d4f6c2d8d..807ac2a2e686e0b3ecd5e12df39eaa62847c20c4 100644 (file)
@@ -175,7 +175,7 @@ void cleanup_oct5066(void)
        int i;
        for (i=0; i<2; i++) {
                if (oct5066_mtd[i]) {
-                       del_mtd_device(oct5066_mtd[i]);
+                       mtd_device_unregister(oct5066_mtd[i]);
                        map_destroy(oct5066_mtd[i]);
                }
        }
@@ -220,7 +220,7 @@ static int __init init_oct5066(void)
                        oct5066_mtd[i] = do_map_probe("map_rom", &oct5066_map[i]);
                if (oct5066_mtd[i]) {
                        oct5066_mtd[i]->owner = THIS_MODULE;
-                       add_mtd_device(oct5066_mtd[i]);
+                       mtd_device_register(oct5066_mtd[i], NULL, 0);
                }
        }