pci: fix compile failed, fdt_get_reg_base() need 3 args

goldfish: fix compile failed, fdt_get_irq_by_path() need 4 args

Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
ligd 2024-10-08 23:02:29 +08:00 committed by Xiang Xiao
parent ba18f87a9e
commit 6dc08ee681
2 changed files with 2 additions and 2 deletions

View file

@ -43,7 +43,7 @@ void up_timer_initialize(void)
lower = goldfish_timer_initialize(
fdt_get_reg_base_by_path(fdt, "/goldfish_rtc"),
fdt_get_irq_by_path(fdt, "/goldfish_rtc", QEMU_SPI_IRQ_BASE));
fdt_get_irq_by_path(fdt, 1, "/goldfish_rtc", QEMU_SPI_IRQ_BASE));
DEBUGASSERT(lower != NULL);

View file

@ -97,7 +97,7 @@ int fdt_pci_ecam_register(FAR const void *fdt)
/* Get the reg address, 64 or 32 */
cfg.start = fdt_get_reg_base(fdt, offset);
cfg.start = fdt_get_reg_base(fdt, offset, 0);
cfg.end = cfg.start + fdt_get_reg_size(fdt, offset);
/* Get the ranges address */