summaryrefslogtreecommitdiff
path: root/firmware/usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/usb.c')
-rw-r--r--firmware/usb.c8
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
79static long usb_stack[(DEFAULT_STACK_SIZE + 0x800)/sizeof(long)]; 79static long usb_stack[(DEFAULT_STACK_SIZE + 0x800)/sizeof(long)];
80static const char usb_thread_name[] = "usb"; 80static const char usb_thread_name[] = "usb";
81static struct thread_entry *usb_thread_entry; 81static unsigned int usb_thread_entry = 0;
82#endif 82#endif
83static struct event_queue usb_queue; 83static struct event_queue usb_queue;
84static int last_usb_status; 84static int last_usb_status;
@@ -539,10 +539,10 @@ void usb_start_monitoring(void)
539#ifdef USB_DRIVER_CLOSE 539#ifdef USB_DRIVER_CLOSE
540void usb_close(void) 540void 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);