mtd: convert remaining users to mtd_device_register()
[deliverable/linux.git] / drivers / mtd / devices / mtdram.c
index 1483e18971cef934b0c713fe9e5ab5727561cf12..2562689ba6b47d185edd5c3ba862af50a8ae97a8 100644 (file)
@@ -104,7 +104,7 @@ static int ram_write(struct mtd_info *mtd, loff_t to, size_t len,
 static void __exit cleanup_mtdram(void)
 {
        if (mtd_info) {
-               del_mtd_device(mtd_info);
+               mtd_device_unregister(mtd_info);
                vfree(mtd_info->priv);
                kfree(mtd_info);
        }
@@ -133,9 +133,8 @@ int mtdram_init_device(struct mtd_info *mtd, void *mapped_address,
        mtd->read = ram_read;
        mtd->write = ram_write;
 
-       if (add_mtd_device(mtd)) {
+       if (mtd_device_register(mtd, NULL, 0))
                return -EIO;
-       }
 
        return 0;
 }
This page took 0.023774 seconds and 5 git commands to generate.