Skip to content

Commit

Permalink
drivers/pci: one pci device should only associate with one driver
Browse files Browse the repository at this point in the history
Signed-off-by: Bowen Wang <[email protected]>
  • Loading branch information
CV-Bowen authored and xiaoxiang781216 committed Sep 27, 2024
1 parent d6f4d0a commit e706805
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/pci/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e706805

Please sign in to comment.