Unconditionally compile part of the DTB code

This commit is contained in:
bjorn3
2026-04-04 14:01:19 +02:00
parent 8eefc8a6a6
commit bbb9d98570
6 changed files with 16 additions and 37 deletions
-1
View File
@@ -148,7 +148,6 @@ fn align_down(x: usize) -> usize {
fn register_memory_from_kernel_args(args: &KernelArgs) {
register_bootloader_areas(args.areas_base as usize, args.areas_size as usize);
#[cfg(dtb)]
if let Some(dt) = args.dtb() {
crate::dtb::register_dev_memory_ranges(&dt);
}
-1
View File
@@ -103,7 +103,6 @@ impl KernelArgs {
}
}
#[cfg(dtb)]
pub(crate) fn dtb(&self) -> Option<fdt::Fdt<'static>> {
if self.hwdesc_base != 0 {
let data = unsafe {