]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/remoteproc/remoteproc_core.c
pinctrl: nomadik: activate strict mux mode
[karo-tx-linux.git] / drivers / remoteproc / remoteproc_core.c
index 3cd85a638afa6dac4a76eae188177acb7f8dec70..11cdb119e4f3bbdee5d73293dd71cec450f2ae65 100644 (file)
@@ -94,19 +94,8 @@ static int rproc_enable_iommu(struct rproc *rproc)
        struct device *dev = rproc->dev.parent;
        int ret;
 
-       /*
-        * We currently use iommu_present() to decide if an IOMMU
-        * setup is needed.
-        *
-        * This works for simple cases, but will easily fail with
-        * platforms that do have an IOMMU, but not for this specific
-        * rproc.
-        *
-        * This will be easily solved by introducing hw capabilities
-        * that will be set by the remoteproc driver.
-        */
-       if (!iommu_present(dev->bus)) {
-               dev_dbg(dev, "iommu not found\n");
+       if (!rproc->has_iommu) {
+               dev_dbg(dev, "iommu not present\n");
                return 0;
        }