summaryrefslogtreecommitdiffstats
path: root/am29f040b.c
diff options
context:
space:
mode:
authorRonald G. Minnich <rminnich@gmail.com>2003-11-05 16:36:57 +0000
committerRonald G. Minnich <rminnich@gmail.com>2003-11-05 16:36:57 +0000
commitac115d50ef079674318112813723b8cd56022c04 (patch)
tree7b2f030eaf25ab8c4047b596bfb2f88be3655d52 /am29f040b.c
parent616f35c32aed329276a8d043ecfe3a3e4d8cb2d6 (diff)
downloadflashrom-ac115d50ef079674318112813723b8cd56022c04.zip
flashrom-ac115d50ef079674318112813723b8cd56022c04.tar.gz
Fix volatile
Corresponding to coreboot v1 svn r888.
Diffstat (limited to 'am29f040b.c')
-rw-r--r--am29f040b.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/am29f040b.c b/am29f040b.c
index 89cdff9..ae345e5 100644
--- a/am29f040b.c
+++ b/am29f040b.c
@@ -69,15 +69,15 @@ static __inline__ int write_sector_29f040b(volatile char * bios, unsigned char *
int probe_29f040b (struct flashchip * flash)
{
- volatile char * bios = flash->virt_addr;
+ volatile unsigned char * bios = flash->virt_addr;
unsigned char id1, id2;
*(bios + 0x555) = 0xAA;
*(bios + 0x2AA) = 0x55;
*(bios + 0x555) = 0x90;
- id1 = *(unsigned char *) bios;
- id2 = *(unsigned char *) (bios + 0x01);
+ id1 = * bios;
+ id2 = * (bios + 0x01);
*bios = 0xF0;
OpenPOWER on IntegriCloud