diff options
Diffstat (limited to 'firmware/usb.c')
-rw-r--r-- | firmware/usb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/usb.c b/firmware/usb.c index f9bfbc4dbf..2bff53e5d6 100644 --- a/firmware/usb.c +++ b/firmware/usb.c | |||
@@ -78,7 +78,7 @@ static int usb_mmc_countdown = 0; | |||
78 | #ifdef USB_FULL_INIT | 78 | #ifdef USB_FULL_INIT |
79 | static long usb_stack[(DEFAULT_STACK_SIZE + 0x800)/sizeof(long)]; | 79 | static long usb_stack[(DEFAULT_STACK_SIZE + 0x800)/sizeof(long)]; |
80 | static const char usb_thread_name[] = "usb"; | 80 | static const char usb_thread_name[] = "usb"; |
81 | static struct thread_entry *usb_thread_entry; | 81 | static unsigned int usb_thread_entry = 0; |
82 | #endif | 82 | #endif |
83 | static struct event_queue usb_queue; | 83 | static struct event_queue usb_queue; |
84 | static int last_usb_status; | 84 | static int last_usb_status; |
@@ -539,10 +539,10 @@ void usb_start_monitoring(void) | |||
539 | #ifdef USB_DRIVER_CLOSE | 539 | #ifdef USB_DRIVER_CLOSE |
540 | void usb_close(void) | 540 | void usb_close(void) |
541 | { | 541 | { |
542 | struct thread_entry *thread = usb_thread_entry; | 542 | uintptr_t thread = usb_thread_entry; |
543 | usb_thread_entry = NULL; | 543 | usb_thread_entry = 0; |
544 | 544 | ||
545 | if (thread == NULL) | 545 | if (thread == 0) |
546 | return; | 546 | return; |
547 | 547 | ||
548 | tick_remove_task(usb_tick); | 548 | tick_remove_task(usb_tick); |