Title: [4058] trunk/drivers/input/joystick/ad7142.c: Fix bug[#3773] Free IRQ only in detach fucntion.
Revision
4058
Author
sonicz
Date
2007-12-19 22:32:53 -0600 (Wed, 19 Dec 2007)

Log Message

Fix bug[#3773] Free IRQ only in detach fucntion.

Diffstat

 ad7142.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

Modified Paths

Diff

Modified: trunk/drivers/input/joystick/ad7142.c (4057 => 4058)


--- trunk/drivers/input/joystick/ad7142.c	2007-12-20 04:20:53 UTC (rev 4057)
+++ trunk/drivers/input/joystick/ad7142.c	2007-12-20 04:32:53 UTC (rev 4058)
@@ -289,6 +289,8 @@
 {
 	int rc;
 
+	free_irq(CONFIG_BFIN_JOYSTICK_IRQ_PFX, ad7142_interrupt);
+
 	rc = i2c_detach_client(client);
 	if (!rc)
 		kfree(i2c_get_clientdata(client));
@@ -428,7 +430,6 @@
 
 static void ad7142_close(struct input_dev *dev)
 {
-	free_irq(CONFIG_BFIN_JOYSTICK_IRQ_PFX, ad7142_interrupt);
 	kthread_stop(ad7142_task);
 }
 
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to