summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2011-12-31 18:43:32 +0000
committerRafaël Carré <rafael.carre@gmail.com>2011-12-31 18:43:32 +0000
commit12a45549f6a6545cce25a11a5971bb8b730f671d (patch)
treed6bc2180010bc392b9720ccfa8ccefcb03fc7083 /firmware
parent61f64d93ee63e027df061eee6c6f25a65f926b79 (diff)
usb-drv-as3525v2: move interrupt disable
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31486 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/as3525/usb-drv-as3525v2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/target/arm/as3525/usb-drv-as3525v2.c b/firmware/target/arm/as3525/usb-drv-as3525v2.c
index 71cf91ba8e..c3cf7f4d77 100644
--- a/firmware/target/arm/as3525/usb-drv-as3525v2.c
+++ b/firmware/target/arm/as3525/usb-drv-as3525v2.c
@@ -239,9 +239,10 @@ void usb_drv_init(void)
void usb_drv_exit(void)
{
+ DCTL = DCTL_pwronprgdone | DCTL_sftdiscon;
+
VIC_INT_EN_CLEAR = INTERRUPT_USB;
- DCTL = DCTL_pwronprgdone | DCTL_sftdiscon;
sleep(HZ/20);
CGU_USB = 0;