diff options
author | Jamie Iles <jamie@jamieiles.com> | 2011-05-23 13:23:40 +0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2011-05-25 05:25:00 +0400 |
commit | ee0e87b174bb41f0310cf089262bf5dd8f95a212 (patch) | |
tree | 444b7eb1cc1a807561889a4cffe15fde11761645 /drivers/mtd/nand/nandsim.c | |
parent | 6b57c11601c8fa4bfa046513c4df155b3b58ea89 (diff) | |
download | linux-ee0e87b174bb41f0310cf089262bf5dd8f95a212.tar.xz |
mtd: convert remaining users to mtd_device_register()
The older add_mtd_device()/add_mtd_partitions() and their removal
counterparts will soon be gone. Replace uses with mtd_device_register()
and mtd_device_unregister().
Signed-off-by: Jamie Iles <jamie@jamieiles.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/nand/nandsim.c')
-rw-r--r-- | drivers/mtd/nand/nandsim.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mtd/nand/nandsim.c b/drivers/mtd/nand/nandsim.c index 893d95bfea48..357e8c5252a8 100644 --- a/drivers/mtd/nand/nandsim.c +++ b/drivers/mtd/nand/nandsim.c @@ -2383,7 +2383,9 @@ static int __init ns_init_module(void) goto err_exit; /* Register NAND partitions */ - if ((retval = add_mtd_partitions(nsmtd, &nand->partitions[0], nand->nbparts)) != 0) + retval = mtd_device_register(nsmtd, &nand->partitions[0], + nand->nbparts); + if (retval != 0) goto err_exit; return 0; |