Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4234541f authored by Joerg Roedel's avatar Joerg Roedel
Browse files

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: default avatarJoerg Roedel <joerg.roedel@amd.com>
parent 6c32df43
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -918,14 +918,14 @@ int omap_iommu_set_isr(const char *name,
		return -ENODEV;
		return -ENODEV;


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


	return 0;
	return 0;
}
}