Commit a2bdbdfb authored by Christopher Hoover's avatar Christopher Hoover Committed by Russell King

[ARM PATCH] 1494/1: [mtd] Make code compile without CONFIG_MTD_CONCAT

Patch from Christopher Hoover

 Make code compile/link/work without CONFIG_MTD_CONCAT.
parent 0d88dcf5
......@@ -1089,8 +1089,10 @@ static void __exit sa1100_destroy_mtd(struct sa_info *sa, struct mtd_info *mtd)
del_mtd_partitions(mtd);
#ifdef CONFIG_MTD_CONCAT
if (mtd != sa[0].mtd)
mtd_concat_destroy(mtd);
#endif
for (i = NR_SUBMTD; i >= 0; i--) {
if (sa[i].mtd)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment