Changes in uspace/drv/usbhub/usbhub.c [7d521e24:152ec79] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/usbhub.c
r7d521e24 r152ec79 42 42 #include <usb/ddfiface.h> 43 43 #include <usb/descriptor.h> 44 #include <usb/ dev/recognise.h>45 #include <usb/ dev/request.h>44 #include <usb/recognise.h> 45 #include <usb/request.h> 46 46 #include <usb/classes/hub.h> 47 #include <usb/dev /poll.h>47 #include <usb/devpoll.h> 48 48 #include <stdio.h> 49 49 … … 51 51 #include "usbhub_private.h" 52 52 #include "port_status.h" 53 #include <usb/usb.h>54 #include <usb/dev/pipes.h>55 #include <usb/classes/classes.h>53 #include "usb/usb.h" 54 #include "usb/pipes.h" 55 #include "usb/classes/classes.h" 56 56 57 57 … … 71 71 72 72 static void usb_hub_process_global_interrupt(usb_hub_info_t * hub_info); 73 74 static void usb_hub_polling_terminted_callback(usb_device_t * device,75 bool was_error, void * data);76 73 77 74 … … 354 351 rc = usb_device_auto_poll(hub_info->usb_device, 0, 355 352 hub_port_changes_callback, ((hub_info->port_count + 1) / 8) + 1, 356 usb_hub_polling_terminted_callback, hub_info);353 NULL, hub_info); 357 354 if (rc != EOK) { 358 355 usb_log_error("Failed to create polling fibril: %s.\n", … … 492 489 493 490 /** 494 * callback called from hub polling fibril when the fibril terminates495 *496 * Should perform a cleanup - deletes hub_info.497 * @param device usb device afected498 * @param was_error indicates that the fibril is stoped due to an error499 * @param data pointer to usb_hub_info_t structure500 */501 static void usb_hub_polling_terminted_callback(usb_device_t * device,502 bool was_error, void * data){503 usb_hub_info_t * hub_info = data;504 if(!hub_info) return;505 free(hub_info->ports);506 free(hub_info);507 }508 509 510 511 512 /**513 491 * @} 514 492 */
Note:
See TracChangeset
for help on using the changeset viewer.