mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 18:38:12 +00:00
Kernel/Devices: Use try_create_device helper for SB16
This commit is contained in:
parent
fd4397a430
commit
44f5f72add
5 changed files with 26 additions and 22 deletions
|
@ -317,7 +317,10 @@ void init_stage2(void*)
|
|||
(void)FullDevice::must_create().leak_ref();
|
||||
(void)RandomDevice::must_create().leak_ref();
|
||||
PTYMultiplexer::initialize();
|
||||
SB16::detect();
|
||||
|
||||
// FIXME: Once we have a singleton for managing many sound cards, remove this from here
|
||||
if (auto device = SB16::try_detect_and_create(); !!device)
|
||||
DeviceManagement::the().attach_sb16_device(*device);
|
||||
|
||||
StorageManagement::the().initialize(kernel_command_line().root_device(), kernel_command_line().is_force_pio());
|
||||
if (VirtualFileSystem::the().mount_root(StorageManagement::the().root_filesystem()).is_error()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue