summaryrefslogtreecommitdiffstats
path: root/fs/romfs
diff options
context:
space:
mode:
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-01-30 15:11:44 +0200
committerDavid Woodhouse <David.Woodhouse@intel.com>2012-03-27 00:19:30 +0100
commitc382fb43df3421b6bfb052561d1e8652ee7e82eb (patch)
treeb7ed9e4cfe1e7dd948edbc07d1a511284357f45b /fs/romfs
parentf02654504dd24348ed28bc965527de99abaa4485 (diff)
downloadlinux-stable-c382fb43df3421b6bfb052561d1e8652ee7e82eb.tar.gz
linux-stable-c382fb43df3421b6bfb052561d1e8652ee7e82eb.tar.bz2
linux-stable-c382fb43df3421b6bfb052561d1e8652ee7e82eb.zip
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 <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'fs/romfs')
-rw-r--r--fs/romfs/storage.c2
1 files changed, 1 insertions, 1 deletions
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