diff options
author | Liav A <liavalb@gmail.com> | 2021-09-11 16:48:29 +0300 |
---|---|---|
committer | Idan Horowitz <idan.horowitz@gmail.com> | 2021-09-11 17:07:38 +0300 |
commit | 7dfecbee4471d9e34b9a8f099479ff30f145ea4e (patch) | |
tree | 681db371067740bdbe16ca3586c284d3119c8162 /Kernel/Devices/SerialDevice.h | |
parent | f2ba7ac9353558b8d4f89155113adee5dd3304c9 (diff) | |
download | serenity-7dfecbee4471d9e34b9a8f099479ff30f145ea4e.zip |
Kernel: Initialize and expose SerialDevice(s) properly
I forgot that we need to also initialize SerialDevice and also to ensure
it creates a sysfs node properly. Although I had a better fix for this,
it keeps the CI happy, so for now it's more than enough :)
Diffstat (limited to 'Kernel/Devices/SerialDevice.h')
-rw-r--r-- | Kernel/Devices/SerialDevice.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Kernel/Devices/SerialDevice.h b/Kernel/Devices/SerialDevice.h index 9e39a902f3..a0070f06e1 100644 --- a/Kernel/Devices/SerialDevice.h +++ b/Kernel/Devices/SerialDevice.h @@ -102,10 +102,12 @@ public: DataReady = 0x01 << 0 }; + // FIXME: We expose this constructor to make try_create_device helper to work + SerialDevice(IOAddress base_addr, unsigned minor); + private: friend class PCISerialDevice; - SerialDevice(IOAddress base_addr, unsigned minor); // ^CharacterDevice virtual StringView class_name() const override { return "SerialDevice"; } |