]> git.dujemihanovic.xyz Git - u-boot.git/commit
iommu: fix compilation when CONFIG_PCI disabled
authorCaleb Connolly <caleb.connolly@linaro.org>
Mon, 11 Dec 2023 18:41:40 +0000 (18:41 +0000)
committerTom Rini <trini@konsulko.com>
Thu, 21 Dec 2023 16:59:49 +0000 (11:59 -0500)
commite96ecbe71925f31ee43d353ceabe5b2c53df512f
tree9b3b3ba0624be05c4f5569022c52823f1c1aa545
parentf1b809c55c2762ab3bb47b3b11d769c04f46093a
iommu: fix compilation when CONFIG_PCI disabled

The dev_pci_iommu_enable() function is only available when CONFIG_PCI is
enabled, replace the runtime check with a preprocessor one to fix
compilation with pci disabled.

Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
drivers/iommu/iommu-uclass.c