Skip to contentSkip to conversation

Staging: comedi: dyna_pci10xx: add mutex_destroy to detach

PATCH New Prashant P. Shah 1 participant 1 message Jun 9, 2011 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: comedi: dyna_pci10xx: add mutex_destroy to detach

Add mutex_destroy() call to driver detach callback

---
 drivers/staging/comedi/drivers/dyna_pci10xx.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
drivers/staging/comedi/drivers/dyna_pci10xx.c +3 -1
index d8821b9..b561a43 100644
@@ -410,8 +410,10 @@ found:
 
 static int dyna_pci10xx_detach(struct comedi_device *dev)
 {
-	if (devpriv && devpriv->pci_dev)
+	if (devpriv && devpriv->pci_dev) {
 		comedi_pci_disable(devpriv->pci_dev);
+		mutex_destroy(&devpriv->mutex);
+	}
 
 	return 0;
 }
Signature · 1 line
1.7.1