Commit 3b844345 authored by Laurentiu Tudor's avatar Laurentiu Tudor Committed by Greg Kroah-Hartman
Browse files

bus: fsl-mc: don't assume an iommu is always present



There are certain scenarios where an iommu is not present, e.g.
booting in a VM. Let's support these scenarios by dropping the
check.

Signed-off-by: default avatarLaurentiu Tudor <laurentiu.tudor@nxp.com>
Link: https://lore.kernel.org/r/20200914105459.27448-1-laurentiu.tudor@nxp.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9ace0b4d
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -908,9 +908,6 @@ static int fsl_mc_bus_probe(struct platform_device *pdev)
	u32 mc_portal_size, mc_stream_id;
	struct resource *plat_res;

	if (!iommu_present(&fsl_mc_bus_type))
		return -EPROBE_DEFER;

	mc = devm_kzalloc(&pdev->dev, sizeof(*mc), GFP_KERNEL);
	if (!mc)
		return -ENOMEM;