summaryrefslogtreecommitdiffstats
path: root/spi.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 /spi.c
parentca812d40d461e70a70df6079978e96642775e7b2 (diff)
downloadflashrom-29a1c66a23bc8685f456d548361b735bf36dcf2b.tar.gz
flashrom-29a1c66a23bc8685f456d548361b735bf36dcf2b.tar.bz2
flashrom-29a1c66a23bc8685f456d548361b735bf36dcf2b.zip
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 'spi.c')
-rw-r--r--spi.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/spi.c b/spi.c
index 9a31abf22..2b6446399 100644
--- a/spi.c
+++ b/spi.c
@@ -217,7 +217,6 @@ int spi_chip_write_256(struct flashchip *flash, uint8_t *buf)
{
int ret;
- spi_disable_blockprotect();
msg_pinfo("Erasing flash before programming... ");
if (erase_flash(flash)) {
msg_perr("ERASE FAILED!\n");