diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2011-10-24 05:25:07 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-11-14 14:51:29 -0500 |
commit | 146ee50ae51c78fc93d025cb9528883df26ab705 (patch) | |
tree | 9e04e40239e74c5930a7b3f1ace455489c788ec6 /drivers/usb/renesas_usbhs | |
parent | 73ef635a07c0e6a0a159d8beabffb83399429188 (diff) |
usb: gadget: renesas_usbhs: bugfix: disable irq when device stop
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/renesas_usbhs')
-rw-r--r-- | drivers/usb/renesas_usbhs/mod_host.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/usb/renesas_usbhs/mod_host.c b/drivers/usb/renesas_usbhs/mod_host.c index f8f612c46ea4..228f7b844c1d 100644 --- a/drivers/usb/renesas_usbhs/mod_host.c +++ b/drivers/usb/renesas_usbhs/mod_host.c | |||
@@ -1226,8 +1226,18 @@ static int usbhsh_stop(struct usbhs_priv *priv) | |||
1226 | { | 1226 | { |
1227 | struct usbhsh_hpriv *hpriv = usbhsh_priv_to_hpriv(priv); | 1227 | struct usbhsh_hpriv *hpriv = usbhsh_priv_to_hpriv(priv); |
1228 | struct usb_hcd *hcd = usbhsh_hpriv_to_hcd(hpriv); | 1228 | struct usb_hcd *hcd = usbhsh_hpriv_to_hcd(hpriv); |
1229 | struct usbhs_mod *mod = usbhs_mod_get_current(priv); | ||
1229 | struct device *dev = usbhs_priv_to_dev(priv); | 1230 | struct device *dev = usbhs_priv_to_dev(priv); |
1230 | 1231 | ||
1232 | /* | ||
1233 | * disable irq callback | ||
1234 | */ | ||
1235 | mod->irq_attch = NULL; | ||
1236 | mod->irq_dtch = NULL; | ||
1237 | mod->irq_sack = NULL; | ||
1238 | mod->irq_sign = NULL; | ||
1239 | usbhs_irq_callback_update(priv, mod); | ||
1240 | |||
1231 | usb_remove_hcd(hcd); | 1241 | usb_remove_hcd(hcd); |
1232 | 1242 | ||
1233 | /* disable sys */ | 1243 | /* disable sys */ |