Browse Source

ata: fix controller init

master
Mathieu Maret 3 weeks ago
parent
commit
4f5b5583cb
  1. 3
      drivers/ata.c

3
drivers/ata.c

@ -567,8 +567,7 @@ int ATAReadPartition(struct ata_device *dev)
int ATADetectController(struct ata_controller *controller)
{
mutexInit(&controller[0].mutex);
mutexInit(&controller[1].mutex);
mutexInit(&controller->mutex);
controller->devices[0].id = 0;
controller->devices[0].isSlave = 0;
controller->devices[0].ctl = controller;

Loading…
Cancel
Save