Skip to content

Commit c382fb4

Browse files
dedekindDavid Woodhouse
authored andcommitted
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>
1 parent f026545 commit c382fb4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/romfs/storage.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#endif
2020

2121
#ifdef CONFIG_ROMFS_ON_MTD
22-
#define ROMFS_MTD_READ(sb, ...) ((sb)->s_mtd->read((sb)->s_mtd, ##__VA_ARGS__))
22+
#define ROMFS_MTD_READ(sb, ...) mtd_read((sb)->s_mtd, ##__VA_ARGS__)
2323

2424
/*
2525
* read data from an romfs image on an MTD device

0 commit comments

Comments
 (0)