]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Arrange for uart_cpu_fdt's probe() routine to use the same table of compat
authorian <ian@FreeBSD.org>
Sat, 2 Nov 2013 20:14:39 +0000 (20:14 +0000)
committerian <ian@FreeBSD.org>
Sat, 2 Nov 2013 20:14:39 +0000 (20:14 +0000)
commit4211363c6429b9c00fe4a1317bc8dd17f65afe23
tree0ee95f3cc3e34937d83fbabf5424858ecc0df729
parentd30ae7faf709d97ed1f4df0ecdbdb707efe055b4
Arrange for uart_cpu_fdt's probe() routine to use the same table of compat
strings as uart_bus_fdt's probe().

The bus code uses ofw_bus_search_compatible() and that's not an option in
cpu (console) code -- it runs way before the ofw routines are usable.  So
the console probe has its own loop to search the table, but now at least
there's only one table to be maintained when new devices are added.
sys/dev/uart/uart.h
sys/dev/uart/uart_bus_fdt.c
sys/dev/uart/uart_cpu_fdt.c