Changes in uspace/drv/usbhub/main.c [f40a1e2:ba5ab09] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/main.c
rf40a1e2 rba5ab09 27 27 */ 28 28 29 /** @addtogroup drvusbhub 30 * @{ 31 */ 32 29 33 #include <driver.h> 30 34 #include <errno.h> … … 38 42 39 43 usb_general_list_t usb_hub_list; 40 f utex_t usb_hub_list_lock;44 fibril_mutex_t usb_hub_list_lock; 41 45 42 46 static driver_ops_t hub_driver_ops = { … … 60 64 int main(int argc, char *argv[]) 61 65 { 62 usb_dprintf_enable(NAME,1); 63 futex_initialize(&usb_hub_list_lock, 0); 66 usb_dprintf_enable(NAME, 0); 67 68 fibril_mutex_initialize(&usb_hub_list_lock); 69 fibril_mutex_lock(&usb_hub_list_lock); 64 70 usb_lst_init(&usb_hub_list); 65 futex_up(&usb_hub_list_lock); 71 fibril_mutex_unlock(&usb_hub_list_lock); 72 66 73 fid_t fid = fibril_create(usb_hub_control_loop, NULL); 67 74 if (fid == 0) { 68 dprintf(1, "failed to start fibril for HUB devices");69 //printf("%s: failed to start fibril for HUB devices\n", NAME);75 fprintf(stderr, NAME ": failed to start monitoring fibril," \ 76 " driver aborting.\n"); 70 77 return ENOMEM; 71 78 } … … 74 81 return driver_main(&hub_driver); 75 82 } 83 84 /** 85 * @} 86 */ 87
Note:
See TracChangeset
for help on using the changeset viewer.