drivers/pci: one pci device should only associate with one driver
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
This commit is contained in:
parent
d6f4d0a20a
commit
e706805c8b
1 changed files with 2 additions and 1 deletions
|
|
@ -2011,12 +2011,13 @@ int pci_register_device(FAR struct pci_device_s *dev)
|
|||
if (drv->probe(dev) >= 0)
|
||||
{
|
||||
dev->drv = drv;
|
||||
break;
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
out:
|
||||
nxmutex_unlock(&g_pci_lock);
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue