aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/bus
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/bus')
-rw-r--r--src/drivers/bus/isa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/drivers/bus/isa.c b/src/drivers/bus/isa.c
index 9b562c6..da0c43c 100644
--- a/src/drivers/bus/isa.c
+++ b/src/drivers/bus/isa.c
@@ -46,9 +46,9 @@ static isa_probe_addr_t isa_extra_probe_addrs[] = {
#endif
#define ISA_IOADDR( driver, ioidx ) \
- ( ( (ioidx) < 0 ) ? \
- isa_extra_probe_addrs[ (ioidx) + ISA_EXTRA_PROBE_ADDR_COUNT ] : \
- (driver)->probe_addrs[(ioidx)] )
+ ( ( (ioidx) >= 0 ) ? \
+ (driver)->probe_addrs[(ioidx)] : \
+ *( isa_extra_probe_addrs + (ioidx) + ISA_EXTRA_PROBE_ADDR_COUNT ) )
static void isabus_remove ( struct root_device *rootdev );