]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/mtd/maps/sun_uflash.c
Merge branch 'setns'
[karo-tx-linux.git] / drivers / mtd / maps / sun_uflash.c
index 3f1cb328a574dd6e7e01cf47a1c12509f3fc2630..2d66234f57cb471e3c9700b5fc35ad1e1c9b6e5f 100644 (file)
@@ -101,7 +101,7 @@ int uflash_devinit(struct platform_device *op, struct device_node *dp)
 
        up->mtd->owner = THIS_MODULE;
 
-       add_mtd_device(up->mtd);
+       mtd_device_register(up->mtd, NULL, 0);
 
        dev_set_drvdata(&op->dev, up);
 
@@ -126,7 +126,7 @@ static int __devexit uflash_remove(struct platform_device *op)
        struct uflash_dev *up = dev_get_drvdata(&op->dev);
 
        if (up->mtd) {
-               del_mtd_device(up->mtd);
+               mtd_device_unregister(up->mtd);
                map_destroy(up->mtd);
        }
        if (up->map.virt) {