Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/block/ahci/ahci.c

    r071a1ddb rd51838f  
    890890/** AHCI interrupt handler.
    891891 *
     892 * @param iid   The IPC call id.
    892893 * @param icall The IPC call structure.
    893894 * @param dev   DDF device structure.
    894895 *
    895896 */
    896 static void ahci_interrupt(ipc_call_t *icall, ddf_dev_t *dev)
     897static void ahci_interrupt(ipc_callid_t iid, ipc_call_t *icall, ddf_dev_t *dev)
    897898{
    898899        ahci_dev_t *ahci = dev_ahci_dev(dev);
     
    11841185        ct.ranges = ahci_ranges;
    11851186       
    1186         int irq_cap;
    1187         int rc = register_interrupt_handler(dev,
    1188             hw_res_parsed.irqs.irqs[0], ahci_interrupt, &ct, &irq_cap);
    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) {
    11901190                ddf_msg(LVL_ERROR, "Failed registering interrupt handler.");
    11911191                goto error_register_interrupt_handler;
    11921192        }
    11931193       
    1194         rc = hw_res_enable_interrupt(ahci->parent_sess,
     1194        int rc = hw_res_enable_interrupt(ahci->parent_sess,
    11951195            hw_res_parsed.irqs.irqs[0]);
    11961196        if (rc != EOK) {
Note: See TracChangeset for help on using the changeset viewer.