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