aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorWayne Boyer <wayneb@linux.vnet.ibm.com>2010-06-09 11:24:55 -0400
committerJames Bottomley <James.Bottomley@suse.de>2010-07-27 13:01:40 -0400
commitc5f10187965f93ef7ef67da9c7c449b13b6dee1b (patch)
tree8fd2cf2fdff887cd5b16968453e0d394bc5a49ee /drivers/scsi
parentfa95d206e4a4fb549bdb9fe71091417f4912178f (diff)
[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')
-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)
1860 return 0; 1860 return 0;
1861} 1861}
1862 1862
1863#ifndef writeq
1864static inline void writeq(u64 val, void __iomem *addr)
1865{
1866 writel(((u32) (val >> 32)), addr);
1867 writel(((u32) (val)), (addr + 4));
1868}
1863#endif 1869#endif
1870
1871#endif /* _IPR_H */