]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/mtd/maps/amd76xrom.c
Merge branch 'for-3.7' of git://linux-nfs.org/~bfields/linux
[karo-tx-linux.git] / drivers / mtd / maps / amd76xrom.c
index 92de7e3a49a5e3b1c6c0590c8c3687cdebd1c132..e2875d6fe129d81645e449e5fc685f5e4a60b3c8 100644 (file)
@@ -82,7 +82,7 @@ static void amd76xrom_cleanup(struct amd76xrom_window *window)
                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);
@@ -262,7 +262,7 @@ static int __devinit amd76xrom_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;