public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] This patch fixes "scheduling while atomic" bug when driver is unloaded.
@ 2008-06-10 12:16 Roman Tereshonkov
  2008-06-10 19:03 ` Felipe Balbi
  0 siblings, 1 reply; 3+ messages in thread
From: Roman Tereshonkov @ 2008-06-10 12:16 UTC (permalink / raw)
  To: linux-omap; +Cc: Roman Tereshonkov


Signed-off-by: Roman Tereshonkov <roman.tereshonkov@nokia.com>
---
 drivers/input/touchscreen/tsc2005.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/input/touchscreen/tsc2005.c b/drivers/input/touchscreen/tsc2005.c
index fa01799..408caf0 100644
--- a/drivers/input/touchscreen/tsc2005.c
+++ b/drivers/input/touchscreen/tsc2005.c
@@ -661,11 +661,10 @@ err1:
 static int __devexit tsc2005_remove(struct spi_device *spi)
 {
 	struct tsc2005 *ts = dev_get_drvdata(&spi->dev);
-	unsigned long flags;
 
-	spin_lock_irqsave(&ts->lock, flags);
+	mutex_lock(&ts->mutex);
 	tsc2005_disable(ts);
-	spin_unlock_irqrestore(&ts->lock, flags);
+	mutex_unlock(&ts->mutex);
 
 	device_remove_file(&ts->spi->dev, &dev_attr_disable_ts);
 	device_remove_file(&ts->spi->dev, &dev_attr_pen_down);
-- 
1.5.5.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-06-10 21:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-10 12:16 [PATCH] This patch fixes "scheduling while atomic" bug when driver is unloaded Roman Tereshonkov
2008-06-10 19:03 ` Felipe Balbi
2008-06-10 21:02   ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox