summaryrefslogtreecommitdiffstats
path: root/it87spi.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-07-14 20:21:22 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-07-14 20:21:22 +0000
commit29a1c66a23bc8685f456d548361b735bf36dcf2b (patch)
tree963d487fa71ce4b6ad998d89fde9e167ce11e6bb /it87spi.c
parentca812d40d461e70a70df6079978e96642775e7b2 (diff)
downloadast2050-flashrom-29a1c66a23bc8685f456d548361b735bf36dcf2b.zip
ast2050-flashrom-29a1c66a23bc8685f456d548361b735bf36dcf2b.tar.gz
Use generic unlocking infrastructure for SPI chips
Actually check if the unlock worked instead of just assuming it worked. Corresponding to flashrom svn r1082. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
Diffstat (limited to 'it87spi.c')
-rw-r--r--it87spi.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/it87spi.c b/it87spi.c
index 69d10a6..cf3d3b9 100644
--- a/it87spi.c
+++ b/it87spi.c
@@ -344,7 +344,6 @@ int it8716f_spi_chip_write_256(struct flashchip *flash, uint8_t *buf, int start,
spi_chip_write_1_new(flash, buf, start, len);
} else {
int lenhere;
- spi_disable_blockprotect();
if (start % 256) {
/* start to the end of the page or start + len,
OpenPOWER on IntegriCloud