diff options
author | Himanshu Madhani <himanshu.madhani@qlogic.com> | 2015-04-09 14:59:56 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Odin.com> | 2015-04-10 11:40:25 -0400 |
commit | 6cbfb1ebbbcdc49eac2f49e146452507b05fcae5 (patch) | |
tree | 31cf607341eb5be882476b9d04001caa6ccdedde /drivers/scsi/qla2xxx/qla_tmpl.c | |
parent | dd83cb2c168f32a8d2ad0acaacb56b2a4078df3a (diff) |
qla2xxx: Fix crash due to wrong casting of reg for ISP27XX.
[Bart: additional sparse warning caused by this patch]
[jejb: fix sparse warning]
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Cc: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_tmpl.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_tmpl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_tmpl.c b/drivers/scsi/qla2xxx/qla_tmpl.c index a8c0c7362e48..766afb7d1df2 100644 --- a/drivers/scsi/qla2xxx/qla_tmpl.c +++ b/drivers/scsi/qla2xxx/qla_tmpl.c | |||
@@ -190,7 +190,7 @@ static inline void | |||
190 | qla27xx_write_reg(__iomem struct device_reg_24xx *reg, | 190 | qla27xx_write_reg(__iomem struct device_reg_24xx *reg, |
191 | uint offset, uint32_t data, void *buf) | 191 | uint offset, uint32_t data, void *buf) |
192 | { | 192 | { |
193 | __iomem void *window = reg + offset; | 193 | __iomem void *window = (void __iomem *)reg + offset; |
194 | 194 | ||
195 | if (buf) { | 195 | if (buf) { |
196 | WRT_REG_DWORD(window, data); | 196 | WRT_REG_DWORD(window, data); |