Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci-hcd/main.c

    rd2bff2f r4125b7d  
    6464        assert(device);
    6565
    66         int ret = device_setup_uhci(device);
     66        uhci_t *uhci = malloc(sizeof(uhci_t));
     67        if (uhci == NULL) {
     68                usb_log_error("Failed to allocate UHCI driver.\n");
     69                return ENOMEM;
     70        }
     71
     72        int ret = uhci_init(uhci, device);
    6773        if (ret != EOK) {
    6874                usb_log_error("Failed to initialize UHCI driver: %s.\n",
     
    7076                return ret;
    7177        }
     78        device->driver_data = uhci;
     79
    7280        usb_log_info("Controlling new UHCI device '%s'.\n", device->name);
    7381
Note: See TracChangeset for help on using the changeset viewer.