Changeset 071a1ddb in mainline for uspace/drv/char/ns8250/ns8250.c


Ignore:
Timestamp:
2017-12-08T21:17:27Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0722869, 569a51a
Parents:
9233e9d
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-08 00:30:18)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-08 21:17:27)
Message:

Return IRQ handles via a separate out parameter in all uspace code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/char/ns8250/ns8250.c

    r9233e9d r071a1ddb  
    802802 * @param ns            Serial port device
    803803 */
    804 static inline int ns8250_register_interrupt_handler(ns8250_t *ns)
     804static inline int ns8250_register_interrupt_handler(ns8250_t *ns,
     805    cap_handle_t *handle)
    805806{
    806807        return register_interrupt_handler(ns->dev, ns->irq,
    807             ns8250_interrupt_handler, NULL);
     808            ns8250_interrupt_handler, NULL, handle);
    808809}
    809810
     
    874875       
    875876        /* Register interrupt handler. */
    876         ns->irq_cap = ns8250_register_interrupt_handler(ns);
    877         if (ns->irq_cap < 0) {
     877        rc = ns8250_register_interrupt_handler(ns, &ns->irq_cap);
     878        if (rc != EOK) {
    878879                ddf_msg(LVL_ERROR, "Failed to register interrupt handler.");
    879880                rc = EADDRNOTAVAIL;
Note: See TracChangeset for help on using the changeset viewer.