mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 14:27:37 +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)
|
if (drv->probe(dev) >= 0)
|
||||||
{
|
{
|
||||||
dev->drv = drv;
|
dev->drv = drv;
|
||||||
break;
|
goto out;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
out:
|
||||||
nxmutex_unlock(&g_pci_lock);
|
nxmutex_unlock(&g_pci_lock);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user