Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/char/i8042/main.c

    r9d58539 r56fd7cf  
    3737#include <libarch/inttypes.h>
    3838#include <ddf/driver.h>
    39 #include <devman.h>
    4039#include <device/hw_res_parsed.h>
    4140#include <errno.h>
     
    6463 *
    6564 */
    66 static int get_my_registers(const ddf_dev_t *dev, uintptr_t *io_reg_address,
     65static int get_my_registers(ddf_dev_t *dev, uintptr_t *io_reg_address,
    6766    size_t *io_reg_size, int *kbd_irq, int *mouse_irq)
    6867{
    6968        assert(dev);
    7069       
    71         async_sess_t *parent_sess =
    72             devman_parent_device_connect(EXCHANGE_SERIALIZE, dev->handle,
    73             IPC_FLAG_BLOCKING);
    74         if (!parent_sess)
     70        async_sess_t *parent_sess = ddf_dev_parent_sess_create(
     71            dev, EXCHANGE_SERIALIZE);
     72        if (parent_sess == NULL)
    7573                return ENOMEM;
    7674       
     
    7876        hw_res_list_parsed_init(&hw_resources);
    7977        const int ret = hw_res_get_list_parsed(parent_sess, &hw_resources, 0);
    80         async_hangup(parent_sess);
    8178        if (ret != EOK)
    8279                return ret;
     
    136133       
    137134        ddf_msg(LVL_NOTE, "Controlling '%s' (%" PRIun ").",
    138             device->name, device->handle);
     135            ddf_dev_get_name(device), ddf_dev_get_handle(device));
    139136        return EOK;
    140137}
Note: See TracChangeset for help on using the changeset viewer.