1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:27:45 +00:00

Userland: Remove stale remainders of old framebuffer devices

This commit is contained in:
Liav A 2022-06-10 13:54:36 +03:00 committed by Linus Groh
parent b7d0b5d745
commit b5e5b299c4
7 changed files with 29 additions and 36 deletions

View file

@ -208,13 +208,6 @@ static void populate_devtmpfs_devices_based_on_devctl()
create_devtmpfs_char_device(String::formatted("/dev/gpu/connector{}", minor_number), 0666, 226, minor_number);
break;
}
case 29: {
if (is_block_device) {
create_devtmpfs_block_device(String::formatted("/dev/fb{}", minor_number), 0666, 29, minor_number);
break;
}
break;
}
case 229: {
if (!is_block_device) {
create_devtmpfs_char_device(String::formatted("/dev/hvc0p{}", minor_number), 0666, major_number, minor_number);
@ -401,7 +394,7 @@ static ErrorOr<void> prepare_synthetic_filesystems()
auto phys_group = TRY(Core::System::getgrnam("phys"sv));
VERIFY(phys_group.has_value());
// FIXME: Try to find a way to not hardcode the major number of framebuffer device nodes.
// FIXME: Try to find a way to not hardcode the major number of display connector device nodes.
TRY(chown_all_matching_device_nodes(phys_group.value(), 29));
auto const filter_chown_ENOENT = [](ErrorOr<void> result) -> ErrorOr<void> {