aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-10-11 00:40:21 -0400
committerBrian Norris <computersforpeace@gmail.com>2013-11-07 02:32:52 -0500
commit39ac9ca336314b39df1488087c05a8214266869c (patch)
treec8cb68c5e1b463bf632e240215848dc2ae8d5f05 /drivers/mtd
parent9fee840c03d944ed1564c127375a702e242d9555 (diff)
mtg: docg3: use free_bch() instead of kfree()
Use free_bch() instead of kfree() to free init_bch() allocated data. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Acked-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/devices/docg3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/devices/docg3.c b/drivers/mtd/devices/docg3.c
index 3e1b0a0ef4db..4f091c1a9981 100644
--- a/drivers/mtd/devices/docg3.c
+++ b/drivers/mtd/devices/docg3.c
@@ -2097,7 +2097,7 @@ notfound:
2097 ret = -ENODEV; 2097 ret = -ENODEV;
2098 dev_info(dev, "No supported DiskOnChip found\n"); 2098 dev_info(dev, "No supported DiskOnChip found\n");
2099err_probe: 2099err_probe:
2100 kfree(cascade->bch); 2100 free_bch(cascade->bch);
2101 for (floor = 0; floor < DOC_MAX_NBFLOORS; floor++) 2101 for (floor = 0; floor < DOC_MAX_NBFLOORS; floor++)
2102 if (cascade->floors[floor]) 2102 if (cascade->floors[floor])
2103 doc_release_device(cascade->floors[floor]); 2103 doc_release_device(cascade->floors[floor]);