diff options
author | Wayne Boyer <wayneb@linux.vnet.ibm.com> | 2010-06-09 19:24:55 +0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-07-27 21:01:40 +0400 |
commit | c5f10187965f93ef7ef67da9c7c449b13b6dee1b (patch) | |
tree | 8fd2cf2fdff887cd5b16968453e0d394bc5a49ee /drivers | |
parent | fa95d206e4a4fb549bdb9fe71091417f4912178f (diff) | |
download | linux-c5f10187965f93ef7ef67da9c7c449b13b6dee1b.tar.xz |
[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')
-rw-r--r-- | drivers/scsi/ipr.h | 8 |
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 */ |