Changeset ba4a03a5 in mainline for uspace/drv/bus/usb/uhci/uhci.c
- Timestamp:
- 2013-12-31T23:11:00Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d1df381
- Parents:
- e3a07bba
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/uhci.c
re3a07bba rba4a03a5 98 98 addr_range_t regs = hw_res.io_ranges.ranges[0]; 99 99 const int irq = hw_res.irqs.irqs[0]; 100 hw_res_list_parsed_clean(&hw_res);101 102 usb_log_debug("I/O regs at %p (size %zu), IRQ %d.\n",103 RNGABSPTR(regs), RNGSZ(regs), irq);104 100 105 101 ret = hcd_ddf_setup_hc(device, USB_SPEED_FULL, … … 107 103 if (ret != EOK) { 108 104 usb_log_error("Failed to setup generic HCD.\n"); 105 hw_res_list_parsed_clean(&hw_res); 109 106 return ret; 110 107 } … … 113 110 if (!hc) { 114 111 usb_log_error("Failed to allocate UHCI HC structure.\n"); 112 hw_res_list_parsed_clean(&hw_res); 115 113 ret = ENOMEM; 116 114 goto ddf_hc_clean; … … 118 116 119 117 bool interrupts = false; 120 ret = hcd_ddf_setup_interrupts(device, & regs, irq, irq_handler,118 ret = hcd_ddf_setup_interrupts(device, &hw_res, irq_handler, 121 119 hc_gen_irq_code); 122 120 if (ret != EOK) { … … 129 127 130 128 ret = hc_init(hc, ®s, interrupts); 129 hw_res_list_parsed_clean(&hw_res); 131 130 if (ret != EOK) { 132 131 usb_log_error("Failed to init uhci_hcd: %s.\n", str_error(ret));
Note:
See TracChangeset
for help on using the changeset viewer.