Skip to contentSkip to conversation

Fix tahvo-usb omap_otg_remove

PATCH New Komal Shah 1 participant 1 message Mar 14, 2006

lore
Share & tools
lore

Komal Shah

author
#0 lore raw

PATCH 1/1 Fix tahvo-usb omap_otg_remove

Tony,

Attached patch makes tahvo_otg_dev NULL after free_irq.

---Komal Shah
http://komalshah.blogspot.com/

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

drivers/cbus/tahvo-usb.c +2 -1
index a002fb7..e7f4b88 100644
@@ -193,8 +193,9 @@ static int omap_otg_probe(struct device 
 
 static int omap_otg_remove(struct device *dev)
 {
-	tahvo_otg_dev = NULL;
 	free_irq(tahvo_otg_dev->resource[1].start, &tahvo_usb_device);
+	tahvo_otg_dev = NULL;
+
 	return 0;
 }