aboutsummaryrefslogtreecommitdiff
path: root/src/flash/nor/stm32lx.c
diff options
context:
space:
mode:
authorSpencer Oliver <spen@spen-soft.co.uk>2012-07-12 12:30:31 +0100
committerFreddie Chopin <freddie.chopin@gmail.com>2012-07-30 06:28:33 +0000
commit38e44d1361a5dbefcbbc54cc8fd8b0bd53dbc89f (patch)
tree9bc1eff4783227e7557c5c34854b54b21ee9613f /src/flash/nor/stm32lx.c
parent055abd0b9cb3427fb9b52263d2be49620e8e4c97 (diff)
flash: fix stm32 flash driver typo's
Change-Id: I37f3fee063d7f8729e057dcfe8904651790439e6 Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/745 Tested-by: jenkins Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
Diffstat (limited to 'src/flash/nor/stm32lx.c')
-rw-r--r--src/flash/nor/stm32lx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/flash/nor/stm32lx.c b/src/flash/nor/stm32lx.c
index 27a446de..fedab300 100644
--- a/src/flash/nor/stm32lx.c
+++ b/src/flash/nor/stm32lx.c
@@ -490,14 +490,14 @@ static int stm32lx_probe(struct flash_bank *bank)
if ((device_id & 0xfff) == 0x416) {
/* check for early silicon */
if (flash_size_in_kb == 0xffff) {
- /* number of sectors may be incorrrect on early silicon */
+ /* number of sectors may be incorrect on early silicon */
LOG_WARNING("STM32 flash size failed, probe inaccurate - assuming 128k flash");
flash_size_in_kb = 128;
}
} else if ((device_id & 0xfff) == 0x436) {
/* check for early silicon */
if (flash_size_in_kb == 0xffff) {
- /* number of sectors may be incorrrect on early silicon */
+ /* number of sectors may be incorrect on early silicon */
LOG_WARNING("STM32 flash size failed, probe inaccurate - assuming 384k flash");
flash_size_in_kb = 384;
}