Changeset 0f6b50f in mainline for uspace/drv/bus/usb/xhci/rh.c
- Timestamp:
- 2017-10-19T20:00:08Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1fd2f81
- Parents:
- 60af4cdb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/rh.c
r60af4cdb r0f6b50f 61 61 XHCI_REG_MASK(XHCI_PORT_CEC); 62 62 63 int xhci_rh_init(xhci_rh_t *rh, xhci_hc_t *hc )63 int xhci_rh_init(xhci_rh_t *rh, xhci_hc_t *hc, ddf_dev_t *device) 64 64 { 65 65 assert(rh); … … 68 68 rh->hc = hc; 69 69 rh->max_ports = XHCI_REG_RD(hc->cap_regs, XHCI_CAP_MAX_PORTS); 70 71 return EOK; 70 hc->rh.hc_device = device; 71 72 return device_init(&hc->rh.device); 72 73 } 73 74 … … 211 212 int err; 212 213 assert(rh); 214 assert(rh->hc_device); 213 215 214 216 xhci_bus_t *bus = &rh->hc->bus;
Note:
See TracChangeset
for help on using the changeset viewer.