diff options
author | Afzal Mohammed <afzal@ti.com> | 2012-09-29 01:44:47 -0400 |
---|---|---|
committer | Afzal Mohammed <afzal@ti.com> | 2012-10-15 05:11:56 -0400 |
commit | 48b51d4dda3195320ec95b3393f44bfb060653c1 (patch) | |
tree | 43633d7d62aa997271f0ba68b5771fad2dda264a /drivers/mtd/nand/omap2.c | |
parent | 89d1efc1fd0aceef8c668e8172aa470477b2784a (diff) |
mtd: nand: omap: free region as per resource size
memory as is now obtained via resource, upon freeing use
resource size. This also helps get rid of one macro.
Signed-off-by: Afzal Mohammed <afzal@ti.com>
Diffstat (limited to 'drivers/mtd/nand/omap2.c')
-rw-r--r-- | drivers/mtd/nand/omap2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c index 5b3138620646..4c331356a882 100644 --- a/drivers/mtd/nand/omap2.c +++ b/drivers/mtd/nand/omap2.c | |||
@@ -1513,7 +1513,7 @@ static int omap_nand_remove(struct platform_device *pdev) | |||
1513 | /* Release NAND device, its internal structures and partitions */ | 1513 | /* Release NAND device, its internal structures and partitions */ |
1514 | nand_release(&info->mtd); | 1514 | nand_release(&info->mtd); |
1515 | iounmap(info->nand.IO_ADDR_R); | 1515 | iounmap(info->nand.IO_ADDR_R); |
1516 | release_mem_region(info->phys_base, NAND_IO_SIZE); | 1516 | release_mem_region(info->phys_base, info->mem_size); |
1517 | kfree(info); | 1517 | kfree(info); |
1518 | return 0; | 1518 | return 0; |
1519 | } | 1519 | } |