aboutsummaryrefslogtreecommitdiffstats
path: root/flashrom.c
diff options
context:
space:
mode:
authorNico Huber <nico.h@gmx.de>2017-10-14 18:18:30 +0200
committerNico Huber <nico.h@gmx.de>2017-12-28 10:46:54 +0000
commit7a077222566c84546dca4a56c1a509626036e429 (patch)
treeb4cd487275dd4ffc92ad6ac885268842efbe9eb3 /flashrom.c
parenta1672f829328e877d9b8dea7777f25e2eba52d0e (diff)
downloadflashrom-7a077222566c84546dca4a56c1a509626036e429.tar.gz
flashrom-7a077222566c84546dca4a56c1a509626036e429.tar.bz2
flashrom-7a077222566c84546dca4a56c1a509626036e429.zip
spi25: Remove now obsolete `four_bytes_addr_funcs` path
Change-Id: Idb7c576cb159630da2268813388b497cb5f46b43 Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/22386 Reviewed-by: David Hendricks <david.hendricks@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'flashrom.c')
-rw-r--r--flashrom.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/flashrom.c b/flashrom.c
index 8849f639..9cc1be66 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -2219,9 +2219,8 @@ int prepare_flash_access(struct flashctx *const flash,
flash->in_4ba_mode = false;
/* Enable/disable 4-byte addressing mode if flash chip supports it */
- if ((flash->chip->feature_bits & FEATURE_4BA_SUPPORT) &&
- flash->chip->four_bytes_addr_funcs.set_4ba) {
- if (flash->chip->four_bytes_addr_funcs.set_4ba(flash)) {
+ if ((flash->chip->feature_bits & FEATURE_4BA_SUPPORT) && flash->chip->set_4ba) {
+ if (flash->chip->set_4ba(flash)) {
msg_cerr("Enabling/disabling 4-byte addressing mode failed!\n");
return 1;
}