freebsd-nq/sys/arm/mv
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
..
discovery Now that we are fully FDT-driven on MRVL platforms, remove PHYSMEM_SIZE option. 2010-07-19 19:19:33 +00:00
kirkwood Now that we are fully FDT-driven on MRVL platforms, remove PHYSMEM_SIZE option. 2010-07-19 19:19:33 +00:00
orion Add basic support for the Marvell Orion TS-7800. 2011-04-15 13:37:43 +00:00
bus_space.c Convert Marvell ARM platforms to FDT convention. 2010-06-13 13:28:53 +00:00
common.c Fix OF_finddevice error return value in case of FDT. 2011-12-02 15:24:39 +00:00
files.mv Initial version of cesa(4) driver for Marvell crypto engine and security 2011-11-19 16:30:06 +00:00
gpio.c Do not call platform_gpio_init() early. It doesn't work because we do 2011-07-15 02:29:10 +00:00
ic.c In arm_get_next_irq(), use the last IRQ argument in order to prevent 2011-02-08 01:49:30 +00:00
mv_machdep.c Fix OF_finddevice error return value in case of FDT. 2011-12-02 15:24:39 +00:00
mv_pci.c - There's no need to overwrite the default device method with the default 2011-11-22 21:28:20 +00:00
mv_sata.c Set of legacy mode SATA enchancements: 2010-10-18 11:30:13 +00:00
mvreg.h Convert Marvell ARM platforms to FDT convention. 2010-06-13 13:28:53 +00:00
mvvar.h Convert Marvell ARM platforms to FDT convention. 2010-06-13 13:28:53 +00:00
mvwin.h Convert Marvell ARM platforms to FDT convention. 2010-06-13 13:28:53 +00:00
rtc.c Convert Marvell ARM platforms to FDT convention. 2010-06-13 13:28:53 +00:00
std.mv
timer.c o Make sure to mask off timer1 interrupts. It's not necessarily 2011-02-08 01:43:45 +00:00
twsi.c Convert Marvell ARM platforms to FDT convention. 2010-06-13 13:28:53 +00:00