Skip to content

Commit

Permalink
omap: iommu: Fix up mutex->spin_lock conversion of iommu_lock
Browse files Browse the repository at this point in the history
The omap_iommu_set_isr() was still using the mutex functions
but the iommu_lock was converted to a spin_lock. Fix that
up.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
  • Loading branch information
Joerg Roedel committed Aug 26, 2011
1 parent 6c32df4 commit 4234541
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/iommu/omap-iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -918,14 +918,14 @@ int omap_iommu_set_isr(const char *name,
return -ENODEV;

obj = to_iommu(dev);
mutex_lock(&obj->iommu_lock);
spin_lock(&obj->iommu_lock);
if (obj->refcount != 0) {
mutex_unlock(&obj->iommu_lock);
spin_unlock(&obj->iommu_lock);
return -EBUSY;
}
obj->isr = isr;
obj->isr_priv = isr_priv;
mutex_unlock(&obj->iommu_lock);
spin_unlock(&obj->iommu_lock);

return 0;
}
Expand Down

0 comments on commit 4234541

Please sign in to comment.