mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-04 15:19:16 +00:00
Kernel/Devices: Use try_create_device helper for ConsoleDevice
This commit is contained in:
parent
5e8dcb9ca7
commit
fd4397a430
Notes:
sideshowbarker
2024-07-18 03:47:53 +09:00
Author: https://github.com/supercomputer7
Commit: fd4397a430
Pull-request: https://github.com/SerenityOS/serenity/pull/9955
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/IdanHo ✅
8 changed files with 43 additions and 26 deletions
|
@ -186,8 +186,7 @@ extern "C" [[noreturn]] UNMAP_AFTER_INIT void init(BootInfo const& boot_info)
|
|||
DeviceManagement::initialize();
|
||||
SysFSComponentRegistry::initialize();
|
||||
DeviceManagement::the().attach_null_device(*NullDevice::must_initialize());
|
||||
|
||||
ConsoleDevice::initialize();
|
||||
DeviceManagement::the().attach_console_device(*ConsoleDevice::must_create());
|
||||
s_bsp_processor.initialize(0);
|
||||
|
||||
CommandLine::initialize();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue