openwrtv3/target/linux/generic/patches-3.2/474-mtd_concat_sync_fix.patch
Jonas Gorski 1bc0abb058 kernel: add support for linux 3.2.1
SVN-Revision: 29730
2012-01-13 14:55:07 +00:00

12 lines
296 B
Diff

--- a/drivers/mtd/mtdconcat.c
+++ b/drivers/mtd/mtdconcat.c
@@ -619,7 +619,8 @@ static void concat_sync(struct mtd_info
for (i = 0; i < concat->num_subdev; i++) {
struct mtd_info *subdev = concat->subdev[i];
- subdev->sync(subdev);
+ if (subdev->sync)
+ subdev->sync(subdev);
}
}