From e9404668a19701ace750148624378461bc9fece5 Mon Sep 17 00:00:00 2001 From: Carl-Daniel Hailfinger Date: Sat, 9 Jan 2010 02:24:17 +0000 Subject: 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 --- stm50flw0x0x.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'stm50flw0x0x.c') diff --git a/stm50flw0x0x.c b/stm50flw0x0x.c index 0ae6eb814..e90bbd2a2 100644 --- a/stm50flw0x0x.c +++ b/stm50flw0x0x.c @@ -31,18 +31,6 @@ #include "flash.h" #include "flashchips.h" -int probe_stm50flw0x0x(struct flashchip *flash) -{ - int result = probe_jedec(flash); - - if (!result) - return result; - - map_flash_registers(flash); - - return 1; -} - static void wait_stm50flw0x0x(chipaddr bios) { chip_writeb(0x70, bios); -- cgit v1.2.3