summaryrefslogtreecommitdiff
path: root/src/flash/nor/spearsmi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/flash/nor/spearsmi.c')
-rw-r--r--src/flash/nor/spearsmi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/flash/nor/spearsmi.c b/src/flash/nor/spearsmi.c
index c3bc2ec5..5e6a2c47 100644
--- a/src/flash/nor/spearsmi.c
+++ b/src/flash/nor/spearsmi.c
@@ -647,6 +647,7 @@ static int spearsmi_probe(struct flash_bank *bank)
if (retval != ERROR_OK)
return retval;
+ spearsmi_info->dev = NULL;
for (struct flash_device *p = flash_devices; p->name ; p++)
if (p->device_id == id) {
spearsmi_info->dev = p;