diff options
author | Himanshu Madhani <himanshu.madhani@qlogic.com> | 2015-04-09 20:59:56 +0200 |
---|---|---|
committer | James Bottomley <JBottomley@Odin.com> | 2015-04-10 17:40:25 +0200 |
commit | 6cbfb1ebbbcdc49eac2f49e146452507b05fcae5 (patch) | |
tree | 31cf607341eb5be882476b9d04001caa6ccdedde /drivers/scsi/qla2xxx/qla_tmpl.c | |
parent | qla2xxx: Fix warnings reported by static checker. (diff) | |
download | linux-6cbfb1ebbbcdc49eac2f49e146452507b05fcae5.tar.xz linux-6cbfb1ebbbcdc49eac2f49e146452507b05fcae5.zip |
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 qla27xx_write_reg(__iomem struct device_reg_24xx *reg, uint offset, uint32_t data, void *buf) { - __iomem void *window = reg + offset; + __iomem void *window = (void __iomem *)reg + offset; if (buf) { WRT_REG_DWORD(window, data); |