aha1542: Convert aha1542_intr_reset to function
authorOndrej Zary <[email protected]>
Fri, 6 Feb 2015 22:11:26 +0000 (23:11 +0100)
committerJames Bottomley <[email protected]>
Fri, 10 Apr 2015 01:06:32 +0000 (18:06 -0700)
Convert aha1542_intr_reset macro to inline function

Signed-off-by: Ondrej Zary <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
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;                                              \