diff --git a/src/arch/riscv64/kernel/devicetree.rs b/src/arch/riscv64/kernel/devicetree.rs index e83a5ed0c4..6968aa7ab2 100644 --- a/src/arch/riscv64/kernel/devicetree.rs +++ b/src/arch/riscv64/kernel/devicetree.rs @@ -147,7 +147,7 @@ pub fn init_drivers() { match gem::init_device( VirtAddr(gem_region.starting_address as u64), irq.try_into().unwrap(), - phy_addr.into(), + phy_addr, <[u8; 6]>::try_from(mac).expect("MAC with invalid length"), ) { Ok(drv) => register_driver(MmioDriver::GEMNet(