summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ipr.h
diff options
context:
space:
mode:
authorWayne Boyer <wayneb@linux.vnet.ibm.com>2010-06-09 17:24:55 +0200
committerJames Bottomley <James.Bottomley@suse.de>2010-07-27 19:01:40 +0200
commitc5f10187965f93ef7ef67da9c7c449b13b6dee1b (patch)
tree8fd2cf2fdff887cd5b16968453e0d394bc5a49ee /drivers/scsi/ipr.h
parent[SCSI] be2iscsi: fix disconnection cleanup (diff)
downloadlinux-c5f10187965f93ef7ef67da9c7c449b13b6dee1b.tar.xz
linux-c5f10187965f93ef7ef67da9c7c449b13b6dee1b.zip
[SCSI] ipr: add writeq definition if needed
Compiling the driver will fail on 32 bit powerpc and other architectures where writeq is not defined. This patch adds a definition for writeq. Signed-off-by: Wayne Boyer <wayneb@linux.vnet.ibm.com> Acked-by: Brian King <brking@linux.vnet.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/ipr.h')
-rw-r--r--drivers/scsi/ipr.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/scsi/ipr.h b/drivers/scsi/ipr.h
index ea391ffc8711..0ef9a67112a8 100644
--- a/drivers/scsi/ipr.h
+++ b/drivers/scsi/ipr.h
@@ -1860,4 +1860,12 @@ static inline int ipr_sdt_is_fmt2(u32 sdt_word)
return 0;
}
+#ifndef writeq
+static inline void writeq(u64 val, void __iomem *addr)
+{
+ writel(((u32) (val >> 32)), addr);
+ writel(((u32) (val)), (addr + 4));
+}
#endif
+
+#endif /* _IPR_H */