[flashrom] [PATCH] Move erase checks out of chip drivers