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 <wangbowen6@xiaomi.com>
  • Loading branch information
CV-Bowen authored and lipengfei28 committed Sep 27, 2024
1 parent 74e814d commit 637cf27
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 637cf27

Please sign in to comment.