romfs: switch to new MTD API

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Mon Mar 26 20:59:05 EDT 2012


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=c382fb43df3421b6bfb052561d1e8652ee7e82eb
Commit:     c382fb43df3421b6bfb052561d1e8652ee7e82eb
Parent:     f02654504dd24348ed28bc965527de99abaa4485
Author:     Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
AuthorDate: Mon Jan 30 15:11:44 2012 +0200
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Tue Mar 27 00:19:30 2012 +0100

    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 at linux.intel.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 fs/romfs/storage.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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



More information about the linux-mtd-cvs mailing list