git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1b809c
)
iommu: fix compilation when CONFIG_PCI disabled
author
Caleb Connolly
<caleb.connolly@linaro.org>
Mon, 11 Dec 2023 18:41:40 +0000
(18:41 +0000)
committer
Tom Rini
<trini@konsulko.com>
Thu, 21 Dec 2023 16:59:49 +0000
(11:59 -0500)
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
patch
|
blob
|
history
diff --git
a/drivers/iommu/iommu-uclass.c
b/drivers/iommu/iommu-uclass.c
index
72f123d
..
98731d5
100644
(file)
--- a/
drivers/iommu/iommu-uclass.c
+++ b/
drivers/iommu/iommu-uclass.c
@@
-100,9
+100,10
@@
int dev_iommu_enable(struct udevice *dev)
dev->iommu = dev_iommu;
}
- if (CONFIG_IS_ENABLED(PCI) && count < 0 &&
-
device_is_on_pci_bus(dev))
+#if CONFIG_IS_ENABLED(PCI)
+
if (count < 0 &&
device_is_on_pci_bus(dev))
return dev_pci_iommu_enable(dev);
+#endif
return 0;
}