Skip to content

Commit 303e845

Browse files
shimodaykwilczynski
authored andcommitted
PCI: dwc: Expose dw_pcie_write_dbi2() to module
Since no PCIe controller drivers call this, this change is not required for now. But, Renesas R-Car Gen4 PCIe controller driver will call this and if the controller driver is built as a kernel module, the following build error happens: ERROR: modpost: "dw_pcie_write_dbi2" [drivers/pci/controller/dwc/pcie-rcar-gen4-host-drv.ko] undefined! So, expose dw_pcie_write_dbi2() for it. Link: https://lore.kernel.org/linux-pci/[email protected] Signed-off-by: Yoshihiro Shimoda <[email protected]> Signed-off-by: Krzysztof Wilczyński <[email protected]> Reviewed-by: Serge Semin <[email protected]>
1 parent 2066b41 commit 303e845

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/pci/controller/dwc/pcie-designware.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,7 @@ void dw_pcie_write_dbi2(struct dw_pcie *pci, u32 reg, size_t size, u32 val)
365365
if (ret)
366366
dev_err(pci->dev, "write DBI address failed\n");
367367
}
368+
EXPORT_SYMBOL_GPL(dw_pcie_write_dbi2);
368369

369370
static inline void __iomem *dw_pcie_select_atu(struct dw_pcie *pci, u32 dir,
370371
u32 index)

0 commit comments

Comments
 (0)