Changeset 91b60499 in mainline for uspace/drv/block/ahci/ahci.c
- Timestamp:
- 2017-09-30T06:29:42Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 300f4c4
- Parents:
- d076f16 (diff), 6636fb19 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/block/ahci/ahci.c
rd076f16 r91b60499 1185 1185 ct.ranges = ahci_ranges; 1186 1186 1187 int rc = register_interrupt_handler(dev, hw_res_parsed.irqs.irqs[0],1188 ahci_interrupt, &ct);1189 if ( rc != EOK) {1187 int irq_cap = register_interrupt_handler(dev, 1188 hw_res_parsed.irqs.irqs[0], ahci_interrupt, &ct); 1189 if (irq_cap < 0) { 1190 1190 ddf_msg(LVL_ERROR, "Failed registering interrupt handler."); 1191 1191 goto error_register_interrupt_handler; 1192 1192 } 1193 1193 1194 rc = irc_enable_interrupt(hw_res_parsed.irqs.irqs[0]);1194 int rc = irc_enable_interrupt(hw_res_parsed.irqs.irqs[0]); 1195 1195 if (rc != EOK) { 1196 1196 ddf_msg(LVL_ERROR, "Failed enable interupt."); … … 1202 1202 1203 1203 error_enable_interrupt: 1204 unregister_interrupt_handler(dev, hw_res_parsed.irqs.irqs[0]);1204 unregister_interrupt_handler(dev, irq_cap); 1205 1205 1206 1206 error_register_interrupt_handler:
Note:
See TracChangeset
for help on using the changeset viewer.