ata: fix controller init
This commit is contained in:
parent
fb9bd8df7d
commit
4f5b5583cb
@ -567,8 +567,7 @@ int ATAReadPartition(struct ata_device *dev)
|
|||||||
int ATADetectController(struct ata_controller *controller)
|
int ATADetectController(struct ata_controller *controller)
|
||||||
{
|
{
|
||||||
|
|
||||||
mutexInit(&controller[0].mutex);
|
mutexInit(&controller->mutex);
|
||||||
mutexInit(&controller[1].mutex);
|
|
||||||
controller->devices[0].id = 0;
|
controller->devices[0].id = 0;
|
||||||
controller->devices[0].isSlave = 0;
|
controller->devices[0].isSlave = 0;
|
||||||
controller->devices[0].ctl = controller;
|
controller->devices[0].ctl = controller;
|
||||||
|
Loading…
Reference in New Issue
Block a user