diff options
author | Damien Le Moal <damien.lemoal@opensource.wdc.com> | 2022-02-20 12:17:41 +0900 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2022-02-22 21:31:16 -0500 |
commit | d2ed913b9a42e8f9072e4ef836727ff50eb8b8cc (patch) | |
tree | 9ba2833de498fcd276016185142bed645dd59d32 /drivers/scsi/pm8001/pm8001_ctl.c | |
parent | 8454563e4c2aafbfb81a383ab423ea8b9b430a25 (diff) | |
download | linux-d2ed913b9a42e8f9072e4ef836727ff50eb8b8cc.tar.gz linux-d2ed913b9a42e8f9072e4ef836727ff50eb8b8cc.tar.bz2 linux-d2ed913b9a42e8f9072e4ef836727ff50eb8b8cc.zip |
scsi: pm8001: Fix __iomem pointer use in pm8001_phy_control()
Avoid the sparse warning "warning: cast removes address space '__iomem' of
expression" by declaring the qp pointer as "u32 __iomem *". Accordingly,
change the accesses to the qp array to use readl().
Link: https://lore.kernel.org/r/20220220031810.738362-3-damien.lemoal@opensource.wdc.com
Reviewed-by: Jack Wang <jinpu.wang@ionos.com>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/pm8001/pm8001_ctl.c')
0 files changed, 0 insertions, 0 deletions