aha1542: Convert aha1542_intr_reset to function
authorOndrej Zary <linux@rainbow-software.org>
Fri, 6 Feb 2015 22:11:26 +0000 (23:11 +0100)
committerJames Bottomley <JBottomley@Odin.com>
Fri, 10 Apr 2015 01:06:32 +0000 (18:06 -0700)
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>
drivers/scsi/aha1542.c

index ebf54b5c3f2b02b92788c48f5fdcebd54ab750d3..2a6308f28d9f3d0c86caf43efe750f5276f94ac5 100644 (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;                                              \