From 068b9307413621a2a9af97b44e47501235f61fbe Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Tue, 24 Mar 2020 14:10:23 +0100 Subject: ARM: Layerscape: Be less noisy when no iommu node found The IOMMU node is not present in the upstream dts files. Do not complain too loudly when we are presented such a device tree. Signed-off-by: Sascha Hauer --- arch/arm/mach-layerscape/icid.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'arch/arm/mach-layerscape') diff --git a/arch/arm/mach-layerscape/icid.c b/arch/arm/mach-layerscape/icid.c index b574a554ab..aec57f4b3f 100644 --- a/arch/arm/mach-layerscape/icid.c +++ b/arch/arm/mach-layerscape/icid.c @@ -495,8 +495,10 @@ static int icid_of_fixup(struct device_node *root, void *context) phandle iommu_handle; iommu = of_find_compatible_node(root, NULL, "arm,mmu-500"); - if (!iommu) - return -ENOENT; + if (!iommu) { + pr_info("No \"arm,mmu-500\" node found, won't fixup\n"); + return 0; + } iommu_handle = of_node_create_phandle(iommu); -- cgit v1.2.3