diff options
Diffstat (limited to 'drivers/mtd/afs.c')
-rw-r--r-- | drivers/mtd/afs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/afs.c b/drivers/mtd/afs.c index 89a02f6f65dc..5a3942bf109c 100644 --- a/drivers/mtd/afs.c +++ b/drivers/mtd/afs.c | |||
@@ -75,7 +75,7 @@ afs_read_footer(struct mtd_info *mtd, u_int *img_start, u_int *iis_start, | |||
75 | size_t sz; | 75 | size_t sz; |
76 | int ret; | 76 | int ret; |
77 | 77 | ||
78 | ret = mtd->read(mtd, ptr, sizeof(fs), &sz, (u_char *) &fs); | 78 | ret = mtd_read(mtd, ptr, sizeof(fs), &sz, (u_char *)&fs); |
79 | if (ret >= 0 && sz != sizeof(fs)) | 79 | if (ret >= 0 && sz != sizeof(fs)) |
80 | ret = -EINVAL; | 80 | ret = -EINVAL; |
81 | 81 | ||
@@ -132,7 +132,7 @@ afs_read_iis(struct mtd_info *mtd, struct image_info_struct *iis, u_int ptr) | |||
132 | int ret, i; | 132 | int ret, i; |
133 | 133 | ||
134 | memset(iis, 0, sizeof(*iis)); | 134 | memset(iis, 0, sizeof(*iis)); |
135 | ret = mtd->read(mtd, ptr, sizeof(*iis), &sz, (u_char *) iis); | 135 | ret = mtd_read(mtd, ptr, sizeof(*iis), &sz, (u_char *)iis); |
136 | if (ret < 0) | 136 | if (ret < 0) |
137 | goto failed; | 137 | goto failed; |
138 | 138 | ||