From bf39c5e8d54572dc3d6d2096c14c898492ce2895 Mon Sep 17 00:00:00 2001 From: Zbigniew Bodek Date: Wed, 12 Nov 2014 21:41:15 +0000 Subject: [PATCH] Make uart_bus_fdt a decendant of ofwbus This will allow to attach UART drivers lying directly on the root node instead of simple-bus compatible bus only. Obtained from: Semihalf Sponsored by: The FreeBSD Foundation --- sys/dev/uart/uart_bus_fdt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/uart/uart_bus_fdt.c b/sys/dev/uart/uart_bus_fdt.c index 65ecf760f49..6cda04360f0 100644 --- a/sys/dev/uart/uart_bus_fdt.c +++ b/sys/dev/uart/uart_bus_fdt.c @@ -157,3 +157,4 @@ uart_fdt_probe(device_t dev) } DRIVER_MODULE(uart, simplebus, uart_fdt_driver, uart_devclass, 0, 0); +DRIVER_MODULE(uart, ofwbus, uart_fdt_driver, uart_devclass, 0, 0);