diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-10 16:45:22 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-10 16:45:22 -0500 |
commit | 7b3480f8b701170c046e1ed362946f5f0d005e13 (patch) | |
tree | bd25e05b4f35699689b485480dddf24f840f80af /drivers/mtd/maps/lantiq-flash.c | |
parent | 1c8106528aa6bf16b3f457de80df1cf7462a49a4 (diff) | |
parent | b60ef99c1164a8ad346cf41f9e71acfffb6d25a6 (diff) |
Merge tag 'for-linus-3.3' of git://git.infradead.org/mtd-2.6
MTD pull for 3.3
* tag 'for-linus-3.3' of git://git.infradead.org/mtd-2.6: (113 commits)
mtd: Fix dependency for MTD_DOC200x
mtd: do not use mtd->block_markbad directly
logfs: do not use 'mtd->block_isbad' directly
mtd: introduce mtd_can_have_bb helper
mtd: do not use mtd->suspend and mtd->resume directly
mtd: do not use mtd->lock, unlock and is_locked directly
mtd: do not use mtd->sync directly
mtd: harmonize mtd_writev usage
mtd: do not use mtd->lock_user_prot_reg directly
mtd: mtd->write_user_prot_reg directly
mtd: do not use mtd->read_*_prot_reg directly
mtd: do not use mtd->get_*_prot_info directly
mtd: do not use mtd->read_oob directly
mtd: mtdoops: do not use mtd->panic_write directly
romfs: do not use mtd->get_unmapped_area directly
mtd: do not use mtd->get_unmapped_area directly
mtd: do use mtd->point directly
mtd: introduce mtd_has_oob helper
mtd: mtdcore: export symbols cleanup
mtd: clean-up the default_mtd_writev function
...
Fix up trivial edit/remove conflict in drivers/staging/spectra/lld_mtd.c
Diffstat (limited to 'drivers/mtd/maps/lantiq-flash.c')
-rw-r--r-- | drivers/mtd/maps/lantiq-flash.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/mtd/maps/lantiq-flash.c b/drivers/mtd/maps/lantiq-flash.c index 4f10e27ada55..7b889de9477b 100644 --- a/drivers/mtd/maps/lantiq-flash.c +++ b/drivers/mtd/maps/lantiq-flash.c | |||
@@ -159,7 +159,7 @@ ltq_mtd_probe(struct platform_device *pdev) | |||
159 | if (!ltq_mtd->mtd) { | 159 | if (!ltq_mtd->mtd) { |
160 | dev_err(&pdev->dev, "probing failed\n"); | 160 | dev_err(&pdev->dev, "probing failed\n"); |
161 | err = -ENXIO; | 161 | err = -ENXIO; |
162 | goto err_unmap; | 162 | goto err_free; |
163 | } | 163 | } |
164 | 164 | ||
165 | ltq_mtd->mtd->owner = THIS_MODULE; | 165 | ltq_mtd->mtd->owner = THIS_MODULE; |
@@ -179,8 +179,6 @@ ltq_mtd_probe(struct platform_device *pdev) | |||
179 | 179 | ||
180 | err_destroy: | 180 | err_destroy: |
181 | map_destroy(ltq_mtd->mtd); | 181 | map_destroy(ltq_mtd->mtd); |
182 | err_unmap: | ||
183 | iounmap(ltq_mtd->map->virt); | ||
184 | err_free: | 182 | err_free: |
185 | kfree(ltq_mtd->map); | 183 | kfree(ltq_mtd->map); |
186 | err_out: | 184 | err_out: |
@@ -198,8 +196,6 @@ ltq_mtd_remove(struct platform_device *pdev) | |||
198 | mtd_device_unregister(ltq_mtd->mtd); | 196 | mtd_device_unregister(ltq_mtd->mtd); |
199 | map_destroy(ltq_mtd->mtd); | 197 | map_destroy(ltq_mtd->mtd); |
200 | } | 198 | } |
201 | if (ltq_mtd->map->virt) | ||
202 | iounmap(ltq_mtd->map->virt); | ||
203 | kfree(ltq_mtd->map); | 199 | kfree(ltq_mtd->map); |
204 | kfree(ltq_mtd); | 200 | kfree(ltq_mtd); |
205 | } | 201 | } |