Skip to content

Commit 2722371

Browse files
committed
mips: fix build
1 parent badcd53 commit 2722371

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

kernel/src/arch/mipsel/board/malta/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub fn init_driver() {
3636
yres_virtual: 600,
3737
xoffset: 0,
3838
yoffset: 0,
39-
depth: fb::ColorDepth::try_from(8)?,
39+
depth: fb::ColorDepth::ColorDepth8,
4040
format: fb::ColorFormat::VgaPalette,
4141
paddr: 0xb0000000,
4242
vaddr: 0xb0000000,

kernel/src/arch/mipsel/board/thinpad/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub fn init_driver() {
2525
yres_virtual: 600,
2626
xoffset: 0,
2727
yoffset: 0,
28-
depth: fb::ColorDepth::try_from(8)?,
28+
depth: fb::ColorDepth::ColorDepth8,
2929
format: fb::ColorFormat::RGB332,
3030
paddr: 0xa2000000,
3131
vaddr: 0xa2000000,

0 commit comments

Comments
 (0)