aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/chips/cfi_cmdset_0002.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/chips/cfi_cmdset_0002.c')
-rw-r--r--drivers/mtd/chips/cfi_cmdset_0002.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/chips/cfi_cmdset_0002.c b/drivers/mtd/chips/cfi_cmdset_0002.c
index ddc5bd783354..a482e8922de1 100644
--- a/drivers/mtd/chips/cfi_cmdset_0002.c
+++ b/drivers/mtd/chips/cfi_cmdset_0002.c
@@ -175,7 +175,7 @@ static void fixup_convert_atmel_pri(struct mtd_info *mtd, void *param)
175 struct cfi_pri_atmel atmel_pri; 175 struct cfi_pri_atmel atmel_pri;
176 176
177 memcpy(&atmel_pri, extp, sizeof(atmel_pri)); 177 memcpy(&atmel_pri, extp, sizeof(atmel_pri));
178 memset(extp + 5, 0, sizeof(*extp) - 5); 178 memset((char *)extp + 5, 0, sizeof(*extp) - 5);
179 179
180 if (atmel_pri.Features & 0x02) 180 if (atmel_pri.Features & 0x02)
181 extp->EraseSuspend = 2; 181 extp->EraseSuspend = 2;