mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 04:16:35 +08:00
drivers/pci: one pci device should only associate with one driver
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
This commit is contained in:
+2
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user