aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/mtdpart.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/mtdpart.c')
-rw-r--r--drivers/mtd/mtdpart.c4
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
95static void part_unpoint(struct mtd_info *mtd, loff_t from, size_t len) 95static 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
102static unsigned long part_get_unmapped_area(struct mtd_info *mtd, 102static unsigned long part_get_unmapped_area(struct mtd_info *mtd,