]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/cbus/tahvo-usb.c
[PATCH] CBUS: Fix tahvo-usb omap_otg_remove
[linux-2.6-omap-h63xx.git] / 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;
 }