diff options
Diffstat (limited to 'drivers/mtd/mtdpart.c')
-rw-r--r-- | drivers/mtd/mtdpart.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/mtdpart.c b/drivers/mtd/mtdpart.c index 4f01079e357f..da8a0b28316c 100644 --- a/drivers/mtd/mtdpart.c +++ b/drivers/mtd/mtdpart.c | |||
@@ -92,11 +92,11 @@ static int part_point(struct mtd_info *mtd, loff_t from, size_t len, | |||
92 | virt, phys); | 92 | virt, phys); |
93 | } | 93 | } |
94 | 94 | ||
95 | static void part_unpoint(struct mtd_info *mtd, loff_t from, size_t len) | 95 | static int part_unpoint(struct mtd_info *mtd, loff_t from, size_t len) |
96 | { | 96 | { |
97 | struct mtd_part *part = PART(mtd); | 97 | struct mtd_part *part = PART(mtd); |
98 | 98 | ||
99 | mtd_unpoint(part->master, from + part->offset, len); | 99 | return mtd_unpoint(part->master, from + part->offset, len); |
100 | } | 100 | } |
101 | 101 | ||
102 | static unsigned long part_get_unmapped_area(struct mtd_info *mtd, | 102 | static unsigned long part_get_unmapped_area(struct mtd_info *mtd, |