Changeset 5d1db18 in mainline


Ignore:
Timestamp:
2011-03-21T14:25:06Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5971dd3
Parents:
7d6a676
Message:

Set rh address to -1 if devman register fails

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/ohci/hc.c

    r7d6a676 r5d1db18  
    100100        ret = usb_hc_new_device_wrapper(dev, &conn, USB_SPEED_FULL, dummy_reset,
    101101            0, instance, &address, &handle, NULL, NULL, NULL);
    102         CHECK_RET_RETURN(ret, "Failed to add rh device.\n");
     102        if (ret != EOK) {
     103                usb_log_error("Failed to add rh device.\n");
     104                instance->rh.address = -1;
     105                return ret;
     106        }
    103107
    104108        ret = usb_hc_connection_close(&conn);
Note: See TracChangeset for help on using the changeset viewer.