diff options
author | Ondrej Zary <linux@rainbow-software.org> | 2015-02-06 23:11:26 +0100 |
---|---|---|
committer | James Bottomley <JBottomley@Odin.com> | 2015-04-10 03:06:32 +0200 |
commit | f1bbef63442f36f5a0fc91f73da104aa8a39a873 (patch) | |
tree | dd34b3c6d9a85c46654d7aee1baadba0b508ffbb /drivers/scsi/aha1542.c | |
parent | aha1542: Remove HOSTDATA macro (diff) | |
download | linux-f1bbef63442f36f5a0fc91f73da104aa8a39a873.tar.xz linux-f1bbef63442f36f5a0fc91f73da104aa8a39a873.zip |
aha1542: Convert aha1542_intr_reset to function
Convert aha1542_intr_reset macro to inline function
Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
Diffstat (limited to 'drivers/scsi/aha1542.c')
-rw-r--r-- | drivers/scsi/aha1542.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/scsi/aha1542.c b/drivers/scsi/aha1542.c index ebf54b5c3f2b..2a6308f28d9f 100644 --- a/drivers/scsi/aha1542.c +++ b/drivers/scsi/aha1542.c @@ -128,7 +128,10 @@ static void setup_mailboxes(int base_io, struct Scsi_Host *shpnt); static int aha1542_restart(struct Scsi_Host *shost); static void aha1542_intr_handle(struct Scsi_Host *shost); -#define aha1542_intr_reset(base) outb(IRST, CONTROL(base)) +static inline void aha1542_intr_reset(u16 base) +{ + outb(IRST, CONTROL(base)); +} #define WAIT(port, mask, allof, noneof) \ { register int WAITbits; \ |