diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2007-09-05 16:16:49 +0000 |
---|---|---|
committer | Christian Gmeiner <christian.gmeiner@gmail.com> | 2007-09-05 16:16:49 +0000 |
commit | 2c30bd92452bf08bb24252a4c3a7302a3bcf3511 (patch) | |
tree | c8bf96c11014a5cbf8e17a688fbde3a0a608b6b9 /firmware/target | |
parent | 1a8f7c51b3abd5d60d3306ab65f63bd5084d4d24 (diff) | |
download | rockbox-2c30bd92452bf08bb24252a4c3a7302a3bcf3511.tar.gz rockbox-2c30bd92452bf08bb24252a4c3a7302a3bcf3511.zip |
try #2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14622 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target')
-rw-r--r-- | firmware/target/arm/usb-fw-pp502x.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/arm/usb-fw-pp502x.c b/firmware/target/arm/usb-fw-pp502x.c index 240548bf61..be37b8b710 100644 --- a/firmware/target/arm/usb-fw-pp502x.c +++ b/firmware/target/arm/usb-fw-pp502x.c | |||
@@ -92,7 +92,9 @@ void usb_init_device(void) | |||
92 | void usb_enable(bool on) | 92 | void usb_enable(bool on) |
93 | { | 93 | { |
94 | #ifdef HAVE_USBSTACK | 94 | #ifdef HAVE_USBSTACK |
95 | (void)on; | 95 | if (!on) { |
96 | usb_stack_stop(); | ||
97 | } | ||
96 | #else | 98 | #else |
97 | /* This device specific code will eventually give way to proper USB | 99 | /* This device specific code will eventually give way to proper USB |
98 | handling, which should be the same for all PP502x targets. */ | 100 | handling, which should be the same for all PP502x targets. */ |
@@ -149,8 +151,6 @@ int usb_detect(void) | |||
149 | status = usbstatus2 ? USB_INSERTED : USB_POWERED; | 151 | status = usbstatus2 ? USB_INSERTED : USB_POWERED; |
150 | #ifndef HAVE_USBSTACK | 152 | #ifndef HAVE_USBSTACK |
151 | dr_controller_stop(); | 153 | dr_controller_stop(); |
152 | #else | ||
153 | usb_stack_stop(); | ||
154 | #endif | 154 | #endif |
155 | } | 155 | } |
156 | return status; | 156 | return status; |