lantiq: 5.15: fix compilation warning pciex fixup patch
[openwrt/staging/ldir.git] / target / linux / lantiq / patches-5.15 / 0001-MIPS-lantiq-add-pcie-driver.patch
index 294bafed4a6ca2b475892ddc88efaa56d78a2cbd..9cd3b08b8e1231ec537c9839afd6364bf9b87976 100644 (file)
@@ -178,7 +178,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
  int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
  {
 +#ifdef CONFIG_PCIE_LANTIQ
-+      if (pci_find_capability(dev, PCI_CAP_ID_EXP))
++      if (pci_find_capability((struct pci_dev *)dev, PCI_CAP_ID_EXP))
 +              return ifx_pcie_bios_map_irq(dev, slot, pin);
 +#endif
 +