2011-06-01 02:23:22 +00:00
|
|
|
--- a/drivers/mtd/mtdconcat.c
|
|
|
|
+++ b/drivers/mtd/mtdconcat.c
|
2011-06-04 13:35:55 +00:00
|
|
|
@@ -619,7 +619,8 @@ static void concat_sync(struct mtd_info
|
2011-06-01 02:23:22 +00:00
|
|
|
|
|
|
|
for (i = 0; i < concat->num_subdev; i++) {
|
|
|
|
struct mtd_info *subdev = concat->subdev[i];
|
|
|
|
- subdev->sync(subdev);
|
|
|
|
+ if (subdev->sync)
|
|
|
|
+ subdev->sync(subdev);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|