Commit 7508d984 authored by Komal Shah's avatar Komal Shah Committed by Tony Lindgren

[PATCH] CBUS: Fix tahvo-usb omap_otg_remove

Attached patch makes tahvo_otg_dev NULL after free_irq.
Signed-off-by: default avatarKomal Shah <komal_shah802003@yahoo.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 37fbceef
...@@ -193,8 +193,9 @@ static int omap_otg_probe(struct device *dev) ...@@ -193,8 +193,9 @@ static int omap_otg_probe(struct device *dev)
static int omap_otg_remove(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); free_irq(tahvo_otg_dev->resource[1].start, &tahvo_usb_device);
tahvo_otg_dev = NULL;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment