diff options
Diffstat (limited to 'drivers/mtd/devices/mtdram.c')
-rw-r--r-- | drivers/mtd/devices/mtdram.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/mtd/devices/mtdram.c b/drivers/mtd/devices/mtdram.c index bf485ff49457..0399be178620 100644 --- a/drivers/mtd/devices/mtdram.c +++ b/drivers/mtd/devices/mtdram.c | |||
@@ -48,18 +48,21 @@ static int ram_erase(struct mtd_info *mtd, struct erase_info *instr) | |||
48 | } | 48 | } |
49 | 49 | ||
50 | static int ram_point(struct mtd_info *mtd, loff_t from, size_t len, | 50 | static int ram_point(struct mtd_info *mtd, loff_t from, size_t len, |
51 | size_t *retlen, u_char **mtdbuf) | 51 | size_t *retlen, void **virt, resource_size_t *phys) |
52 | { | 52 | { |
53 | if (from + len > mtd->size) | 53 | if (from + len > mtd->size) |
54 | return -EINVAL; | 54 | return -EINVAL; |
55 | 55 | ||
56 | *mtdbuf = mtd->priv + from; | 56 | /* can we return a physical address with this driver? */ |
57 | if (phys) | ||
58 | return -EINVAL; | ||
59 | |||
60 | *virt = mtd->priv + from; | ||
57 | *retlen = len; | 61 | *retlen = len; |
58 | return 0; | 62 | return 0; |
59 | } | 63 | } |
60 | 64 | ||
61 | static void ram_unpoint(struct mtd_info *mtd, u_char * addr, loff_t from, | 65 | static void ram_unpoint(struct mtd_info *mtd, loff_t from, size_t len) |
62 | size_t len) | ||
63 | { | 66 | { |
64 | } | 67 | } |
65 | 68 | ||