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>
This commit is contained in:
Ondrej Zary 2015-02-06 23:11:26 +01:00 committed by James Bottomley
parent e98878f737
commit f1bbef6344
1 changed files with 4 additions and 1 deletions

View File

@ -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; \