Changes in uspace/drv/block/ddisk/ddisk.c [f97f5cc2:e9d15d9] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/block/ddisk/ddisk.c
rf97f5cc2 re9d15d9 112 112 ddisk_regs_t *ddisk_regs; 113 113 114 int irq_cap; 115 114 116 bd_srvs_t bds; 115 117 } ddisk_t; … … 447 449 ddisk->bds.sarg = ddisk; 448 450 451 ddisk->irq_cap = -1; 452 449 453 /* 450 454 * Enable access to ddisk's PIO registers. … … 499 503 ddisk_irq_commands[0].addr = (void *) &res_phys->status; 500 504 ddisk_irq_commands[3].addr = (void *) &res_phys->command; 501 rc= register_interrupt_handler(dev, ddisk->ddisk_res.irq,505 ddisk->irq_cap = register_interrupt_handler(dev, ddisk->ddisk_res.irq, 502 506 ddisk_irq_handler, &ddisk_irq_code); 503 if (rc != EOK) { 507 if (ddisk->irq_cap < 0) { 508 rc = ddisk->irq_cap; 504 509 ddf_msg(LVL_ERROR, "Failed to register interrupt handler."); 505 510 goto error; … … 541 546 } 542 547 543 unregister_interrupt_handler(ddisk->dev, ddisk-> ddisk_res.irq);548 unregister_interrupt_handler(ddisk->dev, ddisk->irq_cap); 544 549 545 550 rc = pio_disable(ddisk->ddisk_regs, sizeof(ddisk_regs_t));
Note:
See TracChangeset
for help on using the changeset viewer.