diff --git a/src/libs/compat/freebsd_network/driver.c b/src/libs/compat/freebsd_network/driver.c index 533d452c7d..18a8baa750 100644 --- a/src/libs/compat/freebsd_network/driver.c +++ b/src/libs/compat/freebsd_network/driver.c @@ -42,6 +42,11 @@ int32 gDeviceCount; static status_t init_root_device(driver_t *driver, device_t *_root, device_t *_child) { + static driver_t sRootDriver = { + "pci", + NULL, + sizeof(struct root_device_softc) + }; device_t child; device_t root = device_add_child(NULL, NULL, 0); @@ -54,6 +59,8 @@ init_root_device(driver_t *driver, device_t *_root, device_t *_child) return B_NO_MEMORY; } + root->driver = &sRootDriver; + child = device_add_child(root, driver->name, 0); if (child == NULL) { device_delete_child(NULL, root);