diff options
author | uwe <uwe@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2011-09-06 18:49:31 +0000 |
---|---|---|
committer | uwe <uwe@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2011-09-06 18:49:31 +0000 |
commit | d947dc5af70666ea4ce0b71b80f6f5749654ecf0 (patch) | |
tree | abd43f82470017a31e2761882696b15c383c85c0 /chipset_enable.c | |
parent | f36ef36cd60288fb18cb1a1cdedc75855a984cc7 (diff) | |
download | flashrom-d947dc5af70666ea4ce0b71b80f6f5749654ecf0.tar.gz |
Kill all exit() calls in chipset_enable.c.
Signed-off-by: Tadas Slotkus <devtadas@gmail.com>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1429 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'chipset_enable.c')
-rw-r--r-- | chipset_enable.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/chipset_enable.c b/chipset_enable.c index 21f2e86..1c3d644 100644 --- a/chipset_enable.c +++ b/chipset_enable.c @@ -343,10 +343,7 @@ static int enable_flash_ich_dc(struct pci_dev *dev, const char *name) msg_perr("Error: fwh_idsel= specified, but no value given.\n"); idsel_garbage_out: free(idsel); - /* FIXME: Return failure here once internal_init() starts - * to care about the return value of the chipset enable. - */ - exit(1); + return ERROR_FATAL; } free(idsel); @@ -489,6 +486,8 @@ static int enable_flash_ich_dc_spi(struct pci_dev *dev, const char *name, /* Enable Flash Writes */ ret = enable_flash_ich_dc(dev, name); + if (ret == ERROR_FATAL) + return ret; /* Get physical address of Root Complex Register Block */ tmp = pci_read_long(dev, 0xf0) & 0xffffc000; @@ -894,7 +893,7 @@ static int enable_flash_sb400(struct pci_dev *dev, const char *name) if (!smbusdev) { msg_perr("ERROR: SMBus device not found. Aborting.\n"); - exit(1); + return ERROR_FATAL; } /* Enable some SMBus stuff. */ |