path: root/sst_fwhub.c
diff options
authorCarl-Daniel Hailfinger <>2010-01-09 02:24:17 +0000
committerCarl-Daniel Hailfinger <>2010-01-09 02:24:17 +0000
commite9404668a19701ace750148624378461bc9fece5 (patch)
tree522479a7a1cd5669f763de7e6b86aa7a93c60986 /sst_fwhub.c
parent3646c8f31fbb4f52cac04129b8d6898fb00e1eab (diff)
Use the register mapping feature bit
All functions which just call probe_jedec and then map flash registers are replaced by probe_jedec. All functions which call probe_jedec, map flash registers and do something else can at least eliminate mapping flash registers. Fix logic inversion in probe_jedec to map flash registers on success instead of on failure. Change a few TIMING_IGNORED to TIMING_FIXME where probe_jedec is used. Total savings: One probe function simplified, three probe functions eliminated. Corresponding to flashrom svn r839. Signed-off-by: Carl-Daniel Hailfinger <> Acked-by: Michael Karcher <> Acked-by: Sean Nelson <>
Diffstat (limited to 'sst_fwhub.c')
1 files changed, 0 insertions, 2 deletions
diff --git a/sst_fwhub.c b/sst_fwhub.c
index 4a976e6..b29722f 100644
--- a/sst_fwhub.c
+++ b/sst_fwhub.c
@@ -89,8 +89,6 @@ int probe_sst_fwhub(struct flashchip *flash)
if (probe_jedec(flash) == 0)
return 0;
- map_flash_registers(flash);
for (i = 0; i < flash->total_size * 1024; i += flash->page_size)
check_sst_fwhub_block_lock(flash, i);
OpenPOWER on IntegriCloud