freebsd-dev/sys/arm
Jayachandran C. 07042bef45 Fix OF_finddevice error return value in case of FDT.
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
2011-12-02 15:24:39 +00:00
..
arm Mark all SYSCTL_NODEs static that have no corresponding SYSCTL_DECLs. 2011-11-07 15:43:11 +00:00
at91 Check the return value of BUS_SETUP_INTR() 2011-10-27 10:21:40 +00:00
compile
conf Initial version of cesa(4) driver for Marvell crypto engine and security 2011-11-19 16:30:06 +00:00
econa Rename device_delete_all_children() into device_delete_children(). 2011-11-22 21:56:55 +00:00
include People porting FreeBSD to new architectures ought not have to 2011-10-21 06:41:46 +00:00
mv Fix OF_finddevice error return value in case of FDT. 2011-12-02 15:24:39 +00:00
s3c2xx0 Get myself a brain, move the call to init_param1() before the first use in 2011-02-21 13:11:05 +00:00
sa11x0 Fix for arm and mips case the size of storage for sintrcnt/sintrnames. 2011-08-02 17:49:27 +00:00
xscale Rename device_delete_all_children() into device_delete_children(). 2011-11-22 21:56:55 +00:00