| To: | Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | [PATCH 2/2] MIPS: lantiq: fixes mtd registration of nor device |
| From: | John Crispin <blogic@openwrt.org> |
| Date: | Thu, 9 Jun 2011 19:57:33 +0200 |
| Cc: | John Crispin <blogic@openwrt.org>, linux-mips@linux-mips.org |
| In-reply-to: | <1307642253-8770-1-git-send-email-blogic@openwrt.org> |
| References: | <1307642253-8770-1-git-send-email-blogic@openwrt.org> |
| Sender: | linux-mips-bounce@linux-mips.org |
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
---
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 a90cabd..7e50896 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)
parts = ltq_mtd_data->parts;
}
- err = add_mtd_partitions(ltq_mtd->mtd, parts, nr_parts);
+ err = mtd_device_register(ltq_mtd->mtd, parts, nr_parts);
if (err) {
dev_err(&pdev->dev, "failed to add partitions\n");
goto err_destroy;
@@ -208,7 +208,7 @@ ltq_mtd_remove(struct platform_device *pdev)
if (ltq_mtd) {
if (ltq_mtd->mtd) {
- del_mtd_partitions(ltq_mtd->mtd);
+ mtd_device_unregister(ltq_mtd->mtd);
map_destroy(ltq_mtd->mtd);
}
if (ltq_mtd->map->virt)
--
1.7.2.3
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [patch 13/14] PCSPKR: Cleanup Kconfig dependencies, Benjamin Herrenschmidt |
|---|---|
| Next by Date: | [PATCH 1/2] MIPS: lantiq: adds missing clk.h functions, John Crispin |
| Previous by Thread: | [PATCH 1/2] MIPS: lantiq: adds missing clk.h functions, John Crispin |
| Next by Thread: | Re: [PATCH 2/2] MIPS: lantiq: fixes mtd registration of nor device, Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |