From: Wayne Boyer Date: Wed, 9 Jun 2010 15:24:55 +0000 (-0700) Subject: [SCSI] ipr: add writeq definition if needed X-Git-Tag: v2.6.36-rc1~570^2~217 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c5f10187965f93ef7ef67da9c7c449b13b6dee1b;p=karo-tx-linux.git [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 Acked-by: Brian King Signed-off-by: James Bottomley --- 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 */