1
0
Fork 0

omap: iommu: Fix up mutex->spin_lock conversion of iommu_lock

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>
wifi-calibration
Joerg Roedel 2011-08-26 13:20:06 +02:00
parent 6c32df437c
commit 4234541f1a
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}