scsi: pm8001: Fix __iomem pointer use in pm8001_phy_control()
authorDamien Le Moal <damien.lemoal@opensource.wdc.com>
Sun, 20 Feb 2022 03:17:41 +0000 (12:17 +0900)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 23 Feb 2022 02:31:16 +0000 (21:31 -0500)
commitd2ed913b9a42e8f9072e4ef836727ff50eb8b8cc
tree9ba2833de498fcd276016185142bed645dd59d32
parent8454563e4c2aafbfb81a383ab423ea8b9b430a25
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>
drivers/scsi/pm8001/pm8001_sas.c