1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:47:44 +00:00

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 :)
This commit is contained in:
Liav A 2021-09-11 16:48:29 +03:00 committed by Idan Horowitz
parent f2ba7ac935
commit 7dfecbee44
2 changed files with 19 additions and 11 deletions

View file

@ -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"; }