Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/kbd/port/chardev.c

    rffa2c8ef r228e490  
    3535 */
    3636
     37#include <ipc/ipc.h>
    3738#include <ipc/char.h>
    3839#include <async.h>
     
    9091
    9192        /* NB: The callback connection is slotted for removal */
    92         if (async_connect_to_me(dev_phone, 0, 0, 0, kbd_port_events) != 0) {
     93        sysarg_t phonehash;
     94        if (ipc_connect_to_me(dev_phone, 0, 0, 0, &phonehash) != 0) {
    9395                printf(NAME ": Failed to create callback from device\n");
    9496                return -1;
    9597        }
     98
     99        async_new_connection(phonehash, 0, NULL, kbd_port_events);
    96100
    97101        return 0;
     
    131135                        retval = ENOENT;
    132136                }
    133                 async_answer_0(callid, retval);
     137                ipc_answer_0(callid, retval);
    134138        }
    135139}
Note: See TracChangeset for help on using the changeset viewer.