freebsd-dev/sys/dev/uart
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
..
uart_bus_acpi.c
uart_bus_ebus.c
uart_bus_fdt.c Fix OF_finddevice error return value in case of FDT. 2011-12-02 15:24:39 +00:00
uart_bus_isa.c
uart_bus_pccard.c
uart_bus_pci.c Add device ID for the Davicom 56PDV PCI Modem. 2011-07-08 17:45:38 +00:00
uart_bus_puc.c
uart_bus_scc.c
uart_bus.h
uart_core.c Mark MALLOC_DEFINEs static that have no corresponding MALLOC_DECLAREs. 2011-11-07 06:44:47 +00:00
uart_cpu_amd64.c Merge amd64 and i386 bus.h and move the resulting header to x86. Replace 2010-12-20 16:39:43 +00:00
uart_cpu_i386.c Merge amd64 and i386 bus.h and move the resulting header to x86. Replace 2010-12-20 16:39:43 +00:00
uart_cpu_ia64.c
uart_cpu_pc98.c Merge amd64 and i386 bus.h and move the resulting header to x86. Replace 2010-12-20 16:39:43 +00:00
uart_cpu_powerpc.c Convert Freescale PowerPC platforms to FDT convention. 2010-07-11 21:08:29 +00:00
uart_cpu_sparc64.c Recognize the SAB 82532 found in Fujitsu PRIMEPOWER650 and 900. 2011-05-15 13:27:38 +00:00
uart_cpu.h
uart_dbg.c
uart_dev_ns8250.c Disable the TX ready interrupts once we received one, some UART won't clear 2011-11-02 20:45:44 +00:00
uart_dev_quicc.c
uart_dev_sab82532.c
uart_dev_z8530.c
uart_if.m
uart_kbd_sun_tables.h
uart_kbd_sun.c Restore binary compatibility for GIO_KEYMAP and PIO_KEYMAP. 2011-07-17 08:19:19 +00:00
uart_kbd_sun.h
uart_subr.c Fix typos. 2010-11-09 10:59:09 +00:00
uart_tty.c In uart_tty_outwakeup(), check CTS/RTS flow control settings and 2011-01-24 18:34:16 +00:00
uart.h Add sbbc(4), a driver for the BootBus controller found in Serengeti and 2010-04-10 11:52:12 +00:00