瀏覽代碼

Fix device list of drivers in use

main
PaulStoffregen 7 年之前
父節點
當前提交
2b0fda8a11
共有 1 個檔案被更改,包括 1 行新增4 行删除
  1. +1
    -4
      enumeration.cpp

+ 1
- 4
enumeration.cpp 查看文件

@@ -344,11 +344,8 @@ void USBHost::claim_drivers(Device_t *dev)
available_drivers = driver->next;
}
// add to list of drivers using this device
if (dev->drivers) {
dev->drivers->next = driver;
}
driver->next = dev->drivers;
dev->drivers = driver;
driver->next = NULL;
driver->device = dev;
// not done, may be more interface for more drivers
}

Loading…
取消
儲存