• Carl-Daniel Hailfinger's avatar
    Fix Elan SC520 handling · 97d6b092
    Carl-Daniel Hailfinger authored
    
    
    Flashbase is a variable which should never be set outside chipset code.
    It is only used to calculate the base address of the flash space at
    exactly one location in the code.
    
    Setting flashbase during probe caused subsequent probes to fail unless
    special handling code was used. We had such code and it caused every
    probe except the first to fail on Elan SC520.
    
    Remove the superfluous flashbase assignment and simplify the rest of the
    code.
    
    Corresponding to flashrom svn r488.
    Signed-off-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
    Acked-by: default avatarRonald G. Minnich <rminnich@gmail.com>
    97d6b092
flashrom.c 18.7 KB