Changes in uspace/drv/bus/usb/vhc/hub.c [9d58539:56fd7cf] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/vhc/hub.c
r9d58539 r56fd7cf 100 100 async_sess_t *sess; 101 101 do { 102 sess = devman_device_connect(EXCHANGE_SERIALIZE, hc_dev->handle, 0); 102 sess = devman_device_connect(EXCHANGE_SERIALIZE, 103 ddf_fun_get_handle(hc_dev), 0); 103 104 } while (!sess); 104 105 async_hangup(sess); … … 107 108 108 109 usb_hc_connection_t hc_conn; 109 usb_hc_connection_initialize(&hc_conn, hc_dev->handle);110 usb_hc_connection_initialize(&hc_conn, ddf_fun_get_handle(hc_dev)); 110 111 111 112 rc = usb_hc_connection_open(&hc_conn); … … 113 114 114 115 ddf_fun_t *hub_dev; 115 rc = usb_hc_new_device_wrapper( hc_dev->dev, &hc_conn, USB_SPEED_FULL,116 rc = usb_hc_new_device_wrapper(ddf_fun_get_dev(hc_dev), &hc_conn, USB_SPEED_FULL, 116 117 pretend_port_rest, NULL, NULL, &rh_ops, hc_dev, &hub_dev); 117 118 if (rc != EOK) { … … 123 124 124 125 usb_log_info("Created root hub function (handle %zu).\n", 125 (size_t) hub_dev->handle);126 (size_t) ddf_fun_get_handle(hub_dev)); 126 127 127 128 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.