diff options
-rw-r--r-- | arch/powerpc/include/asm/pnv-pci.h | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/powernv/pci-ioda.c | 6 | ||||
-rw-r--r-- | drivers/misc/cxl/pci.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/arch/powerpc/include/asm/pnv-pci.h b/arch/powerpc/include/asm/pnv-pci.h index 3c00d648336d..f9b498292a5c 100644 --- a/arch/powerpc/include/asm/pnv-pci.h +++ b/arch/powerpc/include/asm/pnv-pci.h | |||
@@ -19,7 +19,7 @@ int pnv_cxl_ioda_msi_setup(struct pci_dev *dev, unsigned int hwirq, | |||
19 | int pnv_cxl_alloc_hwirqs(struct pci_dev *dev, int num); | 19 | int pnv_cxl_alloc_hwirqs(struct pci_dev *dev, int num); |
20 | void pnv_cxl_release_hwirqs(struct pci_dev *dev, int hwirq, int num); | 20 | void pnv_cxl_release_hwirqs(struct pci_dev *dev, int hwirq, int num); |
21 | int pnv_cxl_get_irq_count(struct pci_dev *dev); | 21 | int pnv_cxl_get_irq_count(struct pci_dev *dev); |
22 | struct device_node *pnv_pci_to_phb_node(struct pci_dev *dev); | 22 | struct device_node *pnv_pci_get_phb_node(struct pci_dev *dev); |
23 | 23 | ||
24 | #ifdef CONFIG_CXL_BASE | 24 | #ifdef CONFIG_CXL_BASE |
25 | int pnv_cxl_alloc_hwirq_ranges(struct cxl_irq_ranges *irqs, | 25 | int pnv_cxl_alloc_hwirq_ranges(struct cxl_irq_ranges *irqs, |
diff --git a/arch/powerpc/platforms/powernv/pci-ioda.c b/arch/powerpc/platforms/powernv/pci-ioda.c index 85b473823fda..6c9ff2b95119 100644 --- a/arch/powerpc/platforms/powernv/pci-ioda.c +++ b/arch/powerpc/platforms/powernv/pci-ioda.c | |||
@@ -1487,13 +1487,13 @@ static void set_msi_irq_chip(struct pnv_phb *phb, unsigned int virq) | |||
1487 | 1487 | ||
1488 | #ifdef CONFIG_CXL_BASE | 1488 | #ifdef CONFIG_CXL_BASE |
1489 | 1489 | ||
1490 | struct device_node *pnv_pci_to_phb_node(struct pci_dev *dev) | 1490 | struct device_node *pnv_pci_get_phb_node(struct pci_dev *dev) |
1491 | { | 1491 | { |
1492 | struct pci_controller *hose = pci_bus_to_host(dev->bus); | 1492 | struct pci_controller *hose = pci_bus_to_host(dev->bus); |
1493 | 1493 | ||
1494 | return hose->dn; | 1494 | return of_node_get(hose->dn); |
1495 | } | 1495 | } |
1496 | EXPORT_SYMBOL(pnv_pci_to_phb_node); | 1496 | EXPORT_SYMBOL(pnv_pci_get_phb_node); |
1497 | 1497 | ||
1498 | int pnv_phb_to_cxl_mode(struct pci_dev *dev, uint64_t mode) | 1498 | int pnv_phb_to_cxl_mode(struct pci_dev *dev, uint64_t mode) |
1499 | { | 1499 | { |
diff --git a/drivers/misc/cxl/pci.c b/drivers/misc/cxl/pci.c index 428ea8ba25fc..cb250673b5c6 100644 --- a/drivers/misc/cxl/pci.c +++ b/drivers/misc/cxl/pci.c | |||
@@ -317,7 +317,7 @@ static int init_implementation_adapter_regs(struct cxl *adapter, struct pci_dev | |||
317 | u64 psl_dsnctl; | 317 | u64 psl_dsnctl; |
318 | u64 chipid; | 318 | u64 chipid; |
319 | 319 | ||
320 | if (!(np = pnv_pci_to_phb_node(dev))) | 320 | if (!(np = pnv_pci_get_phb_node(dev))) |
321 | return -ENODEV; | 321 | return -ENODEV; |
322 | 322 | ||
323 | while (np && !(prop = of_get_property(np, "ibm,chip-id", NULL))) | 323 | while (np && !(prop = of_get_property(np, "ibm,chip-id", NULL))) |