Changeset ba4a03a5 in mainline for uspace/drv/bus/usb/ohci/ohci.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/ohci/ohci.c
re3a07bba rba4a03a5 96 96 addr_range_t regs = hw_res.mem_ranges.ranges[0]; 97 97 const int irq = hw_res.irqs.irqs[0]; 98 hw_res_list_parsed_clean(&hw_res);99 100 usb_log_debug("Memory mapped regs at %p (size %zu), IRQ %d.\n",101 RNGABSPTR(regs), RNGSZ(regs), irq);102 98 103 99 /* Initialize generic HCD driver */ … … 105 101 BANDWIDTH_AVAILABLE_USB11, bandwidth_count_usb11); 106 102 if (ret != EOK) { 103 hw_res_list_parsed_clean(&hw_res); 107 104 usb_log_error("Failed to setup generic hcd structures: %s.", 108 105 str_error(ret)); … … 113 110 if (!hc) { 114 111 usb_log_error("Failed to allocate driver structure.\n"); 112 hw_res_list_parsed_clean(&hw_res); 115 113 ret = ENOMEM; 116 114 goto ddf_hc_clean; … … 119 117 /* Try to enable interrupts */ 120 118 bool interrupts = false; 121 ret = hcd_ddf_setup_interrupts(device, & regs, irq, irq_handler,119 ret = hcd_ddf_setup_interrupts(device, &hw_res, irq_handler, 122 120 hc_gen_irq_code); 123 121 if (ret != EOK) { … … 131 129 /* Initialize OHCI HC */ 132 130 ret = hc_init(hc, ®s, interrupts); 131 hw_res_list_parsed_clean(&hw_res); 133 132 if (ret != EOK) { 134 133 usb_log_error("Failed to init hc: %s.\n", str_error(ret));
Note:
See TracChangeset
for help on using the changeset viewer.