]> Pileus Git - ~andy/linux/blobdiff - drivers/mtd/onenand/onenand_sim.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs...
[~andy/linux] / drivers / mtd / onenand / onenand_sim.c
index 5ef3bd5477723dabf1c5b405ceb45b1ae1f2dff6..85399e3accda56205c07211853284cfe70317495 100644 (file)
@@ -539,7 +539,8 @@ static int __init onenand_sim_init(void)
                return -ENXIO;
        }
 
-       add_mtd_partitions(&info->mtd, info->parts, ARRAY_SIZE(os_partitions));
+       mtd_device_register(&info->mtd, info->parts,
+                           ARRAY_SIZE(os_partitions));
 
        return 0;
 }