mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 12:25:00 -04:00
iommu: arm-smmu: fix compile error if CONFIG_PCI disabled
of_get_device_group() uses pci_bus_type, compilation error will
happen if CONFIG_PCI is disabled, add checks for this config.
Fixes: 6d696b37ead1 ("iommu: arm-smmu: Support default domain attributes")
Change-Id: I7c5073b5bc5004600a4633b75fe7d5ea764cc656
Signed-off-by: Qingqing Zhou <qqzhou@codeaurora.org>
This commit is contained in:
parent
f9c0b494bb
commit
abc579fe08
1 changed files with 2 additions and 0 deletions
|
|
@ -2808,10 +2808,12 @@ static struct iommu_group *of_get_device_group(struct device *dev)
|
|||
if (ret > 0)
|
||||
return data.group;
|
||||
|
||||
#ifdef CONFIG_PCI
|
||||
ret = bus_for_each_dev(&pci_bus_type, NULL, &data,
|
||||
__bus_lookup_iommu_group);
|
||||
if (ret > 0)
|
||||
return data.group;
|
||||
#endif
|
||||
|
||||
group = generic_device_group(dev);
|
||||
if (IS_ERR(group))
|
||||
|
|
|
|||
Loading…
Reference in a new issue