projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e98878f
)
aha1542: Convert aha1542_intr_reset to function
author
Ondrej Zary
<
[email protected]
>
Fri, 6 Feb 2015 22:11:26 +0000
(23:11 +0100)
committer
James 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
patch
|
blob
|
history
diff --git
a/drivers/scsi/aha1542.c
b/drivers/scsi/aha1542.c
index ebf54b5c3f2b02b92788c48f5fdcebd54ab750d3..2a6308f28d9f3d0c86caf43efe750f5276f94ac5 100644
(file)
--- 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; \