Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/uhci/res.c

    rd92c1ca r56fd7cf  
    5151 * @return Error code.
    5252 */
    53 int get_my_registers(const ddf_dev_t *dev,
     53int get_my_registers(ddf_dev_t *dev,
    5454    uintptr_t *io_reg_address, size_t *io_reg_size, int *irq_no)
    5555{
     
    5757
    5858        async_sess_t *parent_sess =
    59             devman_parent_device_connect(EXCHANGE_SERIALIZE, dev->handle,
    60             IPC_FLAG_BLOCKING);
     59            devman_parent_device_connect(EXCHANGE_SERIALIZE,
     60            ddf_dev_get_handle(dev), IPC_FLAG_BLOCKING);
    6161        if (!parent_sess)
    6262                return ENOMEM;
     
    9292 * @return Error code.
    9393 */
    94 int enable_interrupts(const ddf_dev_t *device)
     94int enable_interrupts(ddf_dev_t *device)
    9595{
    9696        async_sess_t *parent_sess =
    97             devman_parent_device_connect(EXCHANGE_SERIALIZE, device->handle,
    98             IPC_FLAG_BLOCKING);
     97            devman_parent_device_connect(EXCHANGE_SERIALIZE,
     98            ddf_dev_get_handle(device), IPC_FLAG_BLOCKING);
    9999        if (!parent_sess)
    100100                return ENOMEM;
     
    111111 * @return Error code.
    112112 */
    113 int disable_legacy(const ddf_dev_t *device)
     113int disable_legacy(ddf_dev_t *device)
    114114{
    115115        assert(device);
    116116
    117117        async_sess_t *parent_sess = devman_parent_device_connect(
    118             EXCHANGE_SERIALIZE, device->handle, IPC_FLAG_BLOCKING);
     118            EXCHANGE_SERIALIZE, ddf_dev_get_handle(device), IPC_FLAG_BLOCKING);
    119119        if (!parent_sess)
    120120                return ENOMEM;
Note: See TracChangeset for help on using the changeset viewer.