mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 16:54:20 +08:00
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>
This commit is contained in:
parent
dd83cb2c16
commit
6cbfb1ebbb
@ -190,7 +190,7 @@ static inline void
|
|||||||
qla27xx_write_reg(__iomem struct device_reg_24xx *reg,
|
qla27xx_write_reg(__iomem struct device_reg_24xx *reg,
|
||||||
uint offset, uint32_t data, void *buf)
|
uint offset, uint32_t data, void *buf)
|
||||||
{
|
{
|
||||||
__iomem void *window = reg + offset;
|
__iomem void *window = (void __iomem *)reg + offset;
|
||||||
|
|
||||||
if (buf) {
|
if (buf) {
|
||||||
WRT_REG_DWORD(window, data);
|
WRT_REG_DWORD(window, data);
|
||||||
|
Loading…
Reference in New Issue
Block a user