From 7508d984603f5ce3cb6883c229c97ed0a35d24c6 Mon Sep 17 00:00:00 2001 From: Komal Shah Date: Wed, 22 Mar 2006 08:16:57 -0800 Subject: [PATCH] [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 --- drivers/cbus/tahvo-usb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.41.1