mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 09:49:21 +08:00
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:
parent
ba18f87a9e
commit
6dc08ee681
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue