提交 48b51d4d 编写于 作者: A Afzal Mohammed

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: NAfzal Mohammed <afzal@ti.com>
上级 89d1efc1
......@@ -1513,7 +1513,7 @@ static int omap_nand_remove(struct platform_device *pdev)
/* Release NAND device, its internal structures and partitions */
nand_release(&info->mtd);
iounmap(info->nand.IO_ADDR_R);
release_mem_region(info->phys_base, NAND_IO_SIZE);
release_mem_region(info->phys_base, info->mem_size);
kfree(info);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册