aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-ixp2000/pci.c
diff options
context:
space:
mode:
authorLennert Buytenhek <buytenh@wantstofly.org>2006-12-01 10:02:40 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-12-01 11:55:22 -0500
commit2024c39dbba4d036f0b16daf530ad5f4416fb344 (patch)
treea7f0336412df5e2afc9f68ea1cf2610d586bbaec /arch/arm/mach-ixp2000/pci.c
parent4e4e520fd52cfdcc7232c4762a78016e7656cad2 (diff)
[ARM] 3965/1: ixp2000: fix handling of pci master aborts
The master abort check in ixp2000_pci_read_config() recently started failing due to the compiler optimising out the read access following the clearing of pci_master_aborts. Mark pci_master_aborts volatile to force the compiler to reload it on every use. Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-ixp2000/pci.c')
-rw-r--r--arch/arm/mach-ixp2000/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-ixp2000/pci.c b/arch/arm/mach-ixp2000/pci.c
index d4bf1e1c0031..5a09a90c08fb 100644
--- a/arch/arm/mach-ixp2000/pci.c
+++ b/arch/arm/mach-ixp2000/pci.c
@@ -32,7 +32,7 @@
32 32
33#include <asm/mach/pci.h> 33#include <asm/mach/pci.h>
34 34
35static int pci_master_aborts = 0; 35static volatile int pci_master_aborts = 0;
36 36
37static int clear_master_aborts(void); 37static int clear_master_aborts(void);
38 38