From 7ead885e1cd8ea51eb5c53b5c9778a0facff4239 Mon Sep 17 00:00:00 2001 From: "Ronald G. Minnich" Date: Wed, 5 Nov 2003 16:36:57 +0000 Subject: [PATCH] Fix volatile Corresponding to coreboot v1 svn r888. --- am29f040b.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/am29f040b.c b/am29f040b.c index 89cdff980..ae345e54d 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;