drivers: pcie_ep: iproc: compile-out unused function based on DT

Compile-out `iproc_pcie_pl330_dma_xfer()` if there are no active
DMA users in devicetree.

Signed-off-by: Christopher Friedt <cfriedt@meta.com>
This commit is contained in:
Christopher Friedt 2023-04-29 07:03:23 -04:00 committed by Christopher Friedt
parent ca6c08f960
commit 9ad78eb60c
1 changed files with 2 additions and 0 deletions

View File

@ -175,6 +175,7 @@ static int iproc_pcie_register_reset_cb(const struct device *dev,
return 0;
}
#if DT_ANY_INST_HAS_PROP_STATUS_OKAY(dmas)
static int iproc_pcie_pl330_dma_xfer(const struct device *dev,
uint64_t mapped_addr,
uintptr_t local_addr, uint32_t size,
@ -222,6 +223,7 @@ static int iproc_pcie_pl330_dma_xfer(const struct device *dev,
out:
return ret;
}
#endif
#if DT_INST_IRQ_HAS_NAME(0, perst)
static void iproc_pcie_perst(const struct device *dev)