aboutsummaryrefslogtreecommitdiffstats
path: root/flash_enable.c
diff options
context:
space:
mode:
authorStefan Reinauer <stefan.reinauer@coreboot.org>2006-08-25 19:21:42 +0000
committerStefan Reinauer <stefan.reinauer@coreboot.org>2006-08-25 19:21:42 +0000
commitcbc55d0c2922bf7a02ebad8e15a20f0250ae5443 (patch)
treede025b984a36319b3ceb4938d5b729df7f71b36a /flash_enable.c
parent028f46fd2e639e981dca09a857fcd070ce376042 (diff)
downloadflashrom-cbc55d0c2922bf7a02ebad8e15a20f0250ae5443.tar.gz
flashrom-cbc55d0c2922bf7a02ebad8e15a20f0250ae5443.tar.bz2
flashrom-cbc55d0c2922bf7a02ebad8e15a20f0250ae5443.zip
Print a warning if southbridge is not known
Corresponding to flashrom svn r61 and coreboot v2 svn r2390.
Diffstat (limited to 'flash_enable.c')
-rw-r--r--flash_enable.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/flash_enable.c b/flash_enable.c
index ccd670a9..e110f2a6 100644
--- a/flash_enable.c
+++ b/flash_enable.c
@@ -506,11 +506,15 @@ int enable_flash_write()
}
}
- /* now do the deed. */
- if (enable) {
- printf("Enabling flash write on %s...", enable->name);
- if (enable->doit(dev, enable->name) == 0)
- printf("OK\n");
+ if (!enable) {
+ printf("Warning: Unknown system. Flash detection "
+ "will most likely fail.\n");
+ return 1;
}
+
+ /* now do the deed. */
+ printf("Enabling flash write on %s...", enable->name);
+ if (enable->doit(dev, enable->name) == 0)
+ printf("OK\n");
return 0;
}