Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ede40f39 authored by Qingqing Zhou's avatar Qingqing Zhou
Browse files

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: 6d696b37 ("iommu: arm-smmu: Support default domain attributes")
Change-Id: I7c5073b5bc5004600a4633b75fe7d5ea764cc656
Signed-off-by: default avatarQingqing Zhou <qqzhou@codeaurora.org>
parent 38ae0c3a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3036,10 +3036,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))