projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89d1efc
)
mtd: nand: omap: free region as per resource size
author
Afzal Mohammed
<afzal@ti.com>
Sat, 29 Sep 2012 05:44:47 +0000
(11:14 +0530)
committer
Afzal Mohammed
<afzal@ti.com>
Mon, 15 Oct 2012 09:11:56 +0000
(14:41 +0530)
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>
drivers/mtd/nand/omap2.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mtd/nand/omap2.c
b/drivers/mtd/nand/omap2.c
index 5b3138620646af9b5b7c544529a3ae9250858745..4c331356a882dcd1993b00013ba7b46078da312c 100644
(file)
--- 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)
/* 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;
}