ata: fix controller init

This commit is contained in:
Mathieu Maret 2021-11-13 12:34:02 +01:00
parent fb9bd8df7d
commit 4f5b5583cb

View File

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