* [PATCH] Staging: comedi: dyna_pci10xx: add mutex_destroy to detach
@ 2011-06-09 12:33 Prashant P. Shah
0 siblings, 0 replies; only message in thread
From: Prashant P. Shah @ 2011-06-09 12:33 UTC (permalink / raw)
To: devel; +Cc: Greg Kroah-Hartman, Frank Mori Hess, Ian Abbott, linux-kernel
Add mutex_destroy() call to driver detach callback
Signed-off-by: Prashant P. Shah <pshah.mumbai@gmail.com>
---
drivers/staging/comedi/drivers/dyna_pci10xx.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/drivers/staging/comedi/drivers/dyna_pci10xx.c b/drivers/staging/comedi/drivers/dyna_pci10xx.c
index d8821b9..b561a43 100644
--- a/drivers/staging/comedi/drivers/dyna_pci10xx.c
+++ b/drivers/staging/comedi/drivers/dyna_pci10xx.c
@@ -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;
}
--
1.7.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-06-09 12:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-09 12:33 [PATCH] Staging: comedi: dyna_pci10xx: add mutex_destroy to detach Prashant P. Shah
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®