]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/acpi/arm64/iort.c
ACPI/IORT: Ignore all errors except EPROBE_DEFER
[karo-tx-linux.git] / drivers / acpi / arm64 / iort.c
index c5fecf97ee2f52bd11188a0cd2295bd82d5d02db..16e101f1f69d24c819b5778b391982d59e65a9ed 100644 (file)
@@ -782,6 +782,12 @@ const struct iommu_ops *iort_iommu_configure(struct device *dev)
        if (err)
                ops = ERR_PTR(err);
 
+       /* Ignore all other errors apart from EPROBE_DEFER */
+       if (IS_ERR(ops) && (PTR_ERR(ops) != -EPROBE_DEFER)) {
+               dev_dbg(dev, "Adding to IOMMU failed: %ld\n", PTR_ERR(ops));
+               ops = NULL;
+       }
+
        return ops;
 }