summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Green <andy.green@linaro.org>2012-03-11 20:51:15 +0800
committerAndy Green <andy.green@linaro.org>2012-03-13 11:20:38 +0800
commitc0bc23273d77ac1edf11d1b669a35a4d1dc56558 (patch)
tree672d72c86fbac758338df0ab31dc1552fa84ea12
parenteaee7e774c231a15245c5ca1cc6532c99ef9fa6f (diff)
uplevel all omap_iommu and all spinlock
Signed-off-by: Andy Green <andy.green@linaro.org>
-rw-r--r--drivers/iommu/omap-iommu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/iommu/omap-iommu.c b/drivers/iommu/omap-iommu.c
index 9a4ec6bb211..0a56ce8f71a 100644
--- a/drivers/iommu/omap-iommu.c
+++ b/drivers/iommu/omap-iommu.c
@@ -955,14 +955,14 @@ int iommu_set_secure(const char *name, bool enable, void *data)
return -ENODEV;
obj = to_iommu(dev);
- mutex_lock(&obj->iommu_lock);
+ spin_lock(&obj->iommu_lock);
if (obj->refcount) {
- mutex_unlock(&obj->iommu_lock);
+ spin_unlock(&obj->iommu_lock);
return -EBUSY;
}
obj->secure_mode = enable;
obj->secure_ttb = data;
- mutex_unlock(&obj->iommu_lock);
+ spin_unlock(&obj->iommu_lock);
return 0;
}