aboutsummaryrefslogtreecommitdiff
path: root/kernel/kapi/devices/driver_registry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/kapi/devices/driver_registry.cpp')
-rw-r--r--kernel/kapi/devices/driver_registry.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/kapi/devices/driver_registry.cpp b/kernel/kapi/devices/driver_registry.cpp
index cb101d27..842dbc1d 100644
--- a/kernel/kapi/devices/driver_registry.cpp
+++ b/kernel/kapi/devices/driver_registry.cpp
@@ -79,7 +79,7 @@ namespace kapi::devices
}
auto parent = device->parent();
- auto protocol = parent ? parent->protocol() : nullptr;
+ auto protocol = parent ? parent->facet<kapi::devices::bus_protocol>() : nullptr;
if (!protocol)
{
return;