mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
PCI: switchtec: Add missing __iomem tag to fix sparse warnings
Fix a missing __iomem tag in the init_pfn() function. This fixes a sparse
warning of the form:
$ make C=2 drivers/pci/switch/
drivers/pci/switch/switchtec.c:... incorrect type assignment(different address spaces)
Fixes: 080b47def5
("MicroSemi Switchtec management interface driver")
Link: https://lore.kernel.org/r/20200728192434.18993-2-logang@deltatee.com
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
This commit is contained in:
committed by
Bjorn Helgaas
parent
5f11723b20
commit
42dae89374
@@ -1484,7 +1484,7 @@ static void init_pff(struct switchtec_dev *stdev)
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
u32 reg;
|
u32 reg;
|
||||||
struct part_cfg_regs *pcfg = stdev->mmio_part_cfg;
|
struct part_cfg_regs __iomem *pcfg = stdev->mmio_part_cfg;
|
||||||
|
|
||||||
for (i = 0; i < SWITCHTEC_MAX_PFF_CSR; i++) {
|
for (i = 0; i < SWITCHTEC_MAX_PFF_CSR; i++) {
|
||||||
reg = ioread16(&stdev->mmio_pff_csr[i].vendor_id);
|
reg = ioread16(&stdev->mmio_pff_csr[i].vendor_id);
|
||||||
|
Reference in New Issue
Block a user