Pārlūkot izejas kodu

Fix device list of drivers in use

main
PaulStoffregen pirms 7 gadiem
vecāks
revīzija
2b0fda8a11
1 mainītis faili ar 1 papildinājumiem un 4 dzēšanām
  1. +1
    -4
      enumeration.cpp

+ 1
- 4
enumeration.cpp Parādīt failu

@@ -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
}

Notiek ielāde…
Atcelt
Saglabāt