From 576aa559db2b45c61f566a9dc4a89325e4bc2f48 Mon Sep 17 00:00:00 2001 From: Andrew Turner Date: Fri, 6 Nov 2015 14:40:51 +0000 Subject: [PATCH] Mark the thunder_mdio_fdt driver as early, the bgx needs it to exist so it can find the network phy. Sponsored by: ABT Systems Ltd --- sys/dev/vnic/thunder_mdio_fdt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/vnic/thunder_mdio_fdt.c b/sys/dev/vnic/thunder_mdio_fdt.c index cd2d1cff9f09..b24be1dc3ee6 100644 --- a/sys/dev/vnic/thunder_mdio_fdt.c +++ b/sys/dev/vnic/thunder_mdio_fdt.c @@ -58,8 +58,8 @@ DEFINE_CLASS_1(thunder_mdio, thunder_mdio_fdt_driver, thunder_mdio_fdt_methods, static devclass_t thunder_mdio_fdt_devclass; -DRIVER_MODULE(thunder_mdio, ofwbus, thunder_mdio_fdt_driver, - thunder_mdio_fdt_devclass, 0, 0); +EARLY_DRIVER_MODULE(thunder_mdio, ofwbus, thunder_mdio_fdt_driver, + thunder_mdio_fdt_devclass, 0, 0, BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE); static int thunder_mdio_fdt_probe(device_t dev)