From: Komal Shah Date: Wed, 22 Mar 2006 16:16:57 +0000 (-0800) Subject: [PATCH] CBUS: Fix tahvo-usb omap_otg_remove X-Git-Tag: v2.6.16-omap1~19 X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?p=linux-2.6-omap-h63xx.git;a=commitdiff_plain;h=7508d984603f5ce3cb6883c229c97ed0a35d24c6 [PATCH] CBUS: Fix tahvo-usb omap_otg_remove Attached patch makes tahvo_otg_dev NULL after free_irq. Signed-off-by: Komal Shah Signed-off-by: Tony Lindgren --- diff --git a/drivers/cbus/tahvo-usb.c b/drivers/cbus/tahvo-usb.c index a002fb71585..e7f4b888d85 100644 --- a/drivers/cbus/tahvo-usb.c +++ b/drivers/cbus/tahvo-usb.c @@ -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; }