openwrtv4/target/linux/generic/patches-3.0/474-mtd_concat_sync_fix.patch
Hauke Mehrtens 235e331987 linux/generic: Add support for 3.0-rc3
Also make linux identify itself properly as 3.0, not 3.0.0.

Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com>

SVN-Revision: 27191
2011-06-15 21:31:01 +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);
}
}