mirror of
https://github.com/opnsense/src.git
synced 2026-02-15 16:48:36 -05:00
According to the open firmware standard, finddevice call has to return a phandle with value of -1 in case of error. This commit is to: - Fix the FDT implementation of this interface (ofw_fdt_finddevice) to return (phandle_t)-1 in case of error, instead of 0 as it does now. - Fix up the callers of OF_finddevice() to compare the return value with -1 instead of 0 to check for errors. - Since phandle_t is unsigned, the return value of OF_finddevice should be checked with '== -1' rather than '<= 0' or '> 0', fix up these cases as well. Reported by: nwhitehorn Reviewed by: raj Approved by: raj, nwhitehorn |
||
|---|---|---|
| .. | ||
| ofw_bus.h | ||
| ofw_bus_if.m | ||
| ofw_bus_subr.c | ||
| ofw_bus_subr.h | ||
| ofw_console.c | ||
| ofw_disk.c | ||
| ofw_fdt.c | ||
| ofw_if.m | ||
| ofw_iicbus.c | ||
| ofw_pci.h | ||
| ofw_standard.c | ||
| ofwvar.h | ||
| openfirm.c | ||
| openfirm.h | ||
| openfirmio.c | ||
| openfirmio.h | ||
| openpromio.c | ||
| openpromio.h | ||