phandle_t is a uint32_t type, <= 0 comparison doesn't work with it as intended.
This caused the ofw_pci code to attach to PCI bus on ACPI based systems.
Since 3eae4e106ac7 ofw subsystem can only return -1 for invalid nodes.
Use that.
Details
Details
- Reviewers
mw andrew mmel nwhitehorn - Commits
- rG94287656264f: ofw_pci: fix probing for non-DT cases
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable