diff options
author | John Crispin <blogic@openwrt.org> | 2011-06-09 13:57:33 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2011-10-20 10:00:17 -0400 |
commit | 2e5db86dd4166fd88a042bbb229dfc7081df3e92 (patch) | |
tree | dff5f74c879524f07e472d74b29dec7f1a550e8f /drivers/mtd/maps/lantiq-flash.c | |
parent | 899e3ee404961a90b828ad527573aaaac39f0ab1 (diff) |
MIPS: Lantiq: Fix MTD registration of NOR device
The 2 functions add_mtd_partitions and del_mtd_partitions were renamed to
mtd_device_register and mtd_device_unregister.
Signed-of-by: John Crispin <blogic@openwrt.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2463/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'drivers/mtd/maps/lantiq-flash.c')
-rw-r--r-- | drivers/mtd/maps/lantiq-flash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/maps/lantiq-flash.c b/drivers/mtd/maps/lantiq-flash.c index a90cabd7b84d..7e508969239e 100644 --- a/drivers/mtd/maps/lantiq-flash.c +++ b/drivers/mtd/maps/lantiq-flash.c | |||
@@ -182,7 +182,7 @@ ltq_mtd_probe(struct platform_device *pdev) | |||
182 | parts = ltq_mtd_data->parts; | 182 | parts = ltq_mtd_data->parts; |
183 | } | 183 | } |
184 | 184 | ||
185 | err = add_mtd_partitions(ltq_mtd->mtd, parts, nr_parts); | 185 | err = mtd_device_register(ltq_mtd->mtd, parts, nr_parts); |
186 | if (err) { | 186 | if (err) { |
187 | dev_err(&pdev->dev, "failed to add partitions\n"); | 187 | dev_err(&pdev->dev, "failed to add partitions\n"); |
188 | goto err_destroy; | 188 | goto err_destroy; |
@@ -208,7 +208,7 @@ ltq_mtd_remove(struct platform_device *pdev) | |||
208 | 208 | ||
209 | if (ltq_mtd) { | 209 | if (ltq_mtd) { |
210 | if (ltq_mtd->mtd) { | 210 | if (ltq_mtd->mtd) { |
211 | del_mtd_partitions(ltq_mtd->mtd); | 211 | mtd_device_unregister(ltq_mtd->mtd); |
212 | map_destroy(ltq_mtd->mtd); | 212 | map_destroy(ltq_mtd->mtd); |
213 | } | 213 | } |
214 | if (ltq_mtd->map->virt) | 214 | if (ltq_mtd->map->virt) |