Ignore:
File:
1 edited

Legend:

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

    r071a1ddb r2fd26bb  
    6464static void ddisk_bd_connection(ipc_callid_t, ipc_call_t *, void *);
    6565
    66 static void ddisk_irq_handler(ipc_call_t *, ddf_dev_t *);
     66static void ddisk_irq_handler(ipc_callid_t, ipc_call_t *, ddf_dev_t *);
    6767
    6868static driver_ops_t driver_ops = {
     
    176176};
    177177
    178 void ddisk_irq_handler(ipc_call_t *icall, ddf_dev_t *dev)
     178void ddisk_irq_handler(ipc_callid_t iid, ipc_call_t *icall, ddf_dev_t *dev)
    179179{
    180180        ddf_msg(LVL_DEBUG, "ddisk_irq_handler(), status=%" PRIx32,
     
    503503        ddisk_irq_commands[0].addr = (void *) &res_phys->status;
    504504        ddisk_irq_commands[3].addr = (void *) &res_phys->command;
    505         rc = register_interrupt_handler(dev, ddisk->ddisk_res.irq,
    506             ddisk_irq_handler, &ddisk_irq_code, &ddisk->irq_cap);
    507         if (rc != EOK) {
     505        ddisk->irq_cap = register_interrupt_handler(dev, ddisk->ddisk_res.irq,
     506            ddisk_irq_handler, &ddisk_irq_code);
     507        if (ddisk->irq_cap < 0) {
     508                rc = ddisk->irq_cap;
    508509                ddf_msg(LVL_ERROR, "Failed to register interrupt handler.");
    509510                goto error;
Note: See TracChangeset for help on using the changeset viewer.