]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] CBUS: Fix tahvo-usb omap_otg_remove
authorKomal Shah <komal_shah802003@yahoo.com>
Wed, 22 Mar 2006 16:16:57 +0000 (08:16 -0800)
committerTony Lindgren <tony@atomide.com>
Wed, 22 Mar 2006 16:16:57 +0000 (08:16 -0800)
Attached patch makes tahvo_otg_dev NULL after free_irq.

Signed-off-by: Komal Shah <komal_shah802003@yahoo.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/cbus/tahvo-usb.c

index a002fb71585e88d9e605b1a0179af81e313041fc..e7f4b888d8527612a3944a50f8c2eaea3af1a961 100644 (file)
@@ -193,8 +193,9 @@ static int omap_otg_probe(struct device *dev)
 
 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;
 }