Home
last modified time | relevance | path

Searched hist:"936452941 cbec2b2f51cb6b7e5ac1d9b3081c6c1" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/pci/controller/
H A Dpcie-iproc-platform.cdiff 936452941cbec2b2f51cb6b7e5ac1d9b3081c6c1 Tue Sep 22 14:49:32 CDT 2020 Krzysztof Wilczyński <kw@linux.com> PCI: iproc: Fix using plain integer as NULL pointer in iproc_pcie_pltfm_probe

Fix sparse build warning:

drivers/pci/controller/pcie-iproc-platform.c:102:33: warning: Using plain integer as NULL pointer

The map_irq member of the struct iproc_pcie takes a function pointer
serving as a callback to map interrupts, therefore we should pass a NULL
pointer to it rather than a integer in the iproc_pcie_pltfm_probe()
function.

Related:
commit b64aa11eb2dd ("PCI: Set bridge map_irq and swizzle_irq to
default functions")

Link: https://lore.kernel.org/r/20200922194932.465925-1-kw@linux.com
Signed-off-by: Krzysztof Wilczyński <kw@linux.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Rob Herring <robh@kernel.org>