summaryrefslogtreecommitdiffstats
path: root/82802ab.c
diff options
context:
space:
mode:
authorSean Nelson <audiohacked@gmail.com>2010-03-22 07:03:26 +0000
committerSean Nelson <audiohacked@gmail.com>2010-03-22 07:03:26 +0000
commit4e54de944dd97b7178c3847dfbf419f36c1459e6 (patch)
tree3d73535a8bd7f3d18b7673df0a7c4ad35d6299fa /82802ab.c
parent8864710cd5ca23a365fb35e5ddc3a8b8368b658f (diff)
downloadast2050-flashrom-4e54de944dd97b7178c3847dfbf419f36c1459e6.zip
ast2050-flashrom-4e54de944dd97b7178c3847dfbf419f36c1459e6.tar.gz
In unlock_28f004s5, variable 'i' needs to be int...
Corresponding to flashrom svn r967. Signed-off-by: Sean Nelson <audiohacked@gmail.com> Acked-by: Sean Nelson <audiohacked@gmail.com>
Diffstat (limited to '82802ab.c')
-rw-r--r--82802ab.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/82802ab.c b/82802ab.c
index 68054e2..191114b 100644
--- a/82802ab.c
+++ b/82802ab.c
@@ -209,7 +209,8 @@ int write_82802ab(struct flashchip *flash, uint8_t *buf)
int unlock_28f004s5(struct flashchip *flash)
{
chipaddr bios = flash->virtual_memory;
- uint8_t mcfg, bcfg, need_unlock = 0, can_unlock = 0, i;
+ uint8_t mcfg, bcfg, need_unlock = 0, can_unlock = 0;
+ int i;
/* Clear status register */
chip_writeb(0x50, bios);
OpenPOWER on IntegriCloud