diff options
author | Nicolas Pitre <nico@linaro.org> | 2017-11-07 22:29:48 +0100 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2017-11-13 21:39:18 +0100 |
commit | 9a5941080ef29f1a0347ac2766e4d93312123b21 (patch) | |
tree | dea958839855186686a3cea989b45a160b6781ca /drivers/mtd/devices | |
parent | 9eaa903c06f9f3129f862ef60ce106e4c3211288 (diff) | |
download | linux-9a5941080ef29f1a0347ac2766e4d93312123b21.tar.gz linux-9a5941080ef29f1a0347ac2766e4d93312123b21.tar.bz2 linux-9a5941080ef29f1a0347ac2766e4d93312123b21.zip |
mtd: remove the get_unmapped_area method
It is now unused.
Signed-off-by: Nicolas Pitre <nico@linaro.org>
Reviewed-by: Richard Weinberger <richard@nod.at>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Tested-by: Chris Brandt <chris.brandt@renesas.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'drivers/mtd/devices')
-rw-r--r-- | drivers/mtd/devices/mtdram.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/mtd/devices/mtdram.c b/drivers/mtd/devices/mtdram.c index 4418629e8dc0..0bf4aeaf0cb8 100644 --- a/drivers/mtd/devices/mtdram.c +++ b/drivers/mtd/devices/mtdram.c @@ -99,19 +99,6 @@ static int ram_unpoint(struct mtd_info *mtd, loff_t from, size_t len) return 0; } -/* - * Allow NOMMU mmap() to directly map the device (if not NULL) - * - return the address to which the offset maps - * - return -ENOSYS to indicate refusal to do the mapping - */ -static unsigned long ram_get_unmapped_area(struct mtd_info *mtd, - unsigned long len, - unsigned long offset, - unsigned long flags) -{ - return (unsigned long) mtd->priv + offset; -} - static int ram_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) { @@ -156,7 +143,6 @@ int mtdram_init_device(struct mtd_info *mtd, void *mapped_address, mtd->_erase = ram_erase; mtd->_point = ram_point; mtd->_unpoint = ram_unpoint; - mtd->_get_unmapped_area = ram_get_unmapped_area; mtd->_read = ram_read; mtd->_write = ram_write; |