diff options
author | Guillem Jover <guillem@hadrons.org> | 2009-12-17 14:39:21 +0100 |
---|---|---|
committer | Guillem Jover <guillem@hadrons.org> | 2009-12-18 10:36:23 +0100 |
commit | 8fdd03d725c84795ee646ff90e4b8e90bdab00f3 (patch) | |
tree | 36a3e35ca6b4ca4b496f015abc852867cb832241 /linux/src/drivers/scsi/aha1542.c | |
parent | 55dbc2b5d857d35262ad3116803dfb31b733d031 (diff) |
Use explicit type int when defining register variables
* linux/src/drivers/scsi/aha1542.c (WAIT, WAITd): Define variables
with explicit type `register int' and not just `register'.
Diffstat (limited to 'linux/src/drivers/scsi/aha1542.c')
-rw-r--r-- | linux/src/drivers/scsi/aha1542.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linux/src/drivers/scsi/aha1542.c b/linux/src/drivers/scsi/aha1542.c index 0366fd3..68954d7 100644 --- a/linux/src/drivers/scsi/aha1542.c +++ b/linux/src/drivers/scsi/aha1542.c @@ -120,8 +120,8 @@ static int aha1542_restart(struct Scsi_Host * shost); #define aha1542_intr_reset(base) outb(IRST, CONTROL(base)) #define WAIT(port, mask, allof, noneof) \ - { register WAITbits; \ - register WAITtimeout = WAITnexttimeout; \ + { register int WAITbits; \ + register int WAITtimeout = WAITnexttimeout; \ while (1) { \ WAITbits = inb(port) & (mask); \ if ((WAITbits & (allof)) == (allof) && ((WAITbits & (noneof)) == 0)) \ @@ -133,8 +133,8 @@ static int aha1542_restart(struct Scsi_Host * shost); /* Similar to WAIT, except we use the udelay call to regulate the amount of time we wait. */ #define WAITd(port, mask, allof, noneof, timeout) \ - { register WAITbits; \ - register WAITtimeout = timeout; \ + { register int WAITbits; \ + register int WAITtimeout = timeout; \ while (1) { \ WAITbits = inb(port) & (mask); \ if ((WAITbits & (allof)) == (allof) && ((WAITbits & (noneof)) == 0)) \ |