mtd: convert remaining users to mtd_device_register()
[deliverable/linux.git] / drivers / mtd / nand / alauda.c
index 8691e0482ed28b8886e976c0bee3e1e48cd02c75..eb40ea829ab282b0418d68efd1c8a0f6c0347c9a 100644 (file)
@@ -120,7 +120,7 @@ static void alauda_delete(struct kref *kref)
        struct alauda *al = container_of(kref, struct alauda, kref);
 
        if (al->mtd) {
-               del_mtd_device(al->mtd);
+               mtd_device_unregister(al->mtd);
                kfree(al->mtd);
        }
        usb_put_dev(al->dev);
@@ -592,7 +592,7 @@ static int alauda_init_media(struct alauda *al)
        mtd->priv = al;
        mtd->owner = THIS_MODULE;
 
-       err = add_mtd_device(mtd);
+       err = mtd_device_register(mtd, NULL, 0);
        if (err) {
                err = -ENFILE;
                goto error;
This page took 0.028294 seconds and 5 git commands to generate.