From: Artem Bityutskiy Date: Mon, 30 Jan 2012 13:11:44 +0000 (+0200) Subject: romfs: switch to new MTD API X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c382fb43df3421b6bfb052561d1e8652ee7e82eb;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git romfs: switch to new MTD API We have changed the MTD API and now ROMFS should use 'mtd_read()' instead of mtd->read(). Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- diff --git a/fs/romfs/storage.c b/fs/romfs/storage.c index 71e2b4d50a0a..f86f51f99ace 100644 --- a/fs/romfs/storage.c +++ b/fs/romfs/storage.c @@ -19,7 +19,7 @@ #endif #ifdef CONFIG_ROMFS_ON_MTD -#define ROMFS_MTD_READ(sb, ...) ((sb)->s_mtd->read((sb)->s_mtd, ##__VA_ARGS__)) +#define ROMFS_MTD_READ(sb, ...) mtd_read((sb)->s_mtd, ##__VA_ARGS__) /* * read data from an romfs image on an MTD device