diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-07-26 02:52:16 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-07-26 02:52:16 +0200 |
| commit | cbae92965caf0653e8f32794db3ab4173b54504d (patch) | |
| tree | 895209f76b2300bd92b2ae40c602a8fb8470d373 /arch | |
| parent | 59f54d012c71e782966e9d083f1ee9459fd3fd70 (diff) | |
| download | kernel-cbae92965caf0653e8f32794db3ab4173b54504d.tar.xz kernel-cbae92965caf0653e8f32794db3ab4173b54504d.zip | |
chore: minor cleanups after refactoring
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/x86_64/arch/bus/isa.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/x86_64/arch/bus/isa.cpp b/arch/x86_64/arch/bus/isa.cpp index 8e17c186..4df86a6d 100644 --- a/arch/x86_64/arch/bus/isa.cpp +++ b/arch/x86_64/arch/bus/isa.cpp @@ -14,8 +14,6 @@ namespace arch::bus { struct isa_protocol final : kapi::devices::bus_protocol { - constexpr auto static id = kapi::capabilities::facet_id{"isa_protocol"}; - auto enumerate(kapi::devices::bus &) -> void override { // NOTE: ISA does not support enumeration, but we need to fulfill the interface. @@ -48,9 +46,9 @@ namespace arch::bus auto isa::query_facet(kapi::capabilities::facet_id id) -> void * { - if (id == isa_protocol::id || id == kapi::devices::bus_protocol::id) + if (id == kapi::devices::bus_protocol::id) { - return &protocol_instance; + return static_cast<kapi::devices::bus_protocol *>(&protocol_instance); } return bus::query_facet(id); |
