diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2020-03-24 14:10:23 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-03-24 14:17:08 +0100 |
commit | 068b9307413621a2a9af97b44e47501235f61fbe (patch) | |
tree | 58f43b745df7a2551e7a6e08035ecc335bbc2510 /arch | |
parent | 42e0112162cdc09dd3c0174f990ab8856bcbe0b4 (diff) | |
download | barebox-068b9307413621a2a9af97b44e47501235f61fbe.tar.gz barebox-068b9307413621a2a9af97b44e47501235f61fbe.tar.xz |
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 <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-layerscape/icid.c | 6 |
1 files changed, 4 insertions, 2 deletions
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); |