mtd: introduce mtd_get_unmapped_area interface

Signed-off-by: Artem Bityutskiy <[email protected]>
Signed-off-by: David Woodhouse <[email protected]>
This commit is contained in:
Artem Bityutskiy 2011-12-23 17:10:15 +02:00 • committed by David Woodhouse
commit 04c601bfa4
5 changed files with 18 additions and 11 deletions

View file

@ -53,7 +53,7 @@ static unsigned long romfs_get_unmapped_area(struct file *file,
if (offset > mtd->size - len)
return (unsigned long) -EINVAL;
return mtd->get_unmapped_area(mtd, len, offset, flags);
return mtd_get_unmapped_area(mtd, len, offset, flags);
}
cant_map_directly: