Patchwork [2/3] romfs: switch to new MTD API

login
register
mail settings
Submitter Artem Bityutskiy
Date Jan. 30, 2012, 2:24 p.m.
Message ID <1327933447-17356-2-git-send-email-dedekind1@gmail.com>
Download mbox | patch
Permalink /patch/138580/
State New
Headers show

Comments

Artem Bityutskiy - Jan. 30, 2012, 2:24 p.m.
From: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>

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>
---
 fs/romfs/storage.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/fs/romfs/storage.c b/fs/romfs/storage.c
index 71e2b4d..f86f51f 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