aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/remoteproc
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/remoteproc')
-rw-r--r--drivers/remoteproc/omap_remoteproc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/remoteproc/omap_remoteproc.c b/drivers/remoteproc/omap_remoteproc.c
index 2d2bcb6..ab7ef1d 100644
--- a/drivers/remoteproc/omap_remoteproc.c
+++ b/drivers/remoteproc/omap_remoteproc.c
@@ -161,6 +161,9 @@ int omap_rproc_activate(struct omap_device *od)
}
rpp->iommu = iommu;
}
+
+ if (!rpp->mbox)
+ rpp->mbox = omap_mbox_get(pdata->sus_mbox_name, NULL);
#endif
/**
@@ -219,6 +222,11 @@ int omap_rproc_deactivate(struct omap_device *od)
iommu_put(rpp->iommu);
rpp->iommu = NULL;
}
+
+ if (rpp->mbox) {
+ omap_mbox_put(rpp->mbox, NULL);
+ rpp->mbox = NULL;
+ }
#endif
err:
return ret;