mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]>
This commit is contained in:
parent
89d1efc1fd
commit
48b51d4dda
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue