Skip to content

Commit

Permalink
pci: fix compile failed, fdt_get_reg_base() need 3 args
Browse files Browse the repository at this point in the history
goldfish: fix compile failed, fdt_get_irq_by_path() need 4 args

Signed-off-by: ligd <[email protected]>
  • Loading branch information
GUIDINGLI committed Oct 8, 2024
1 parent 802c8ae commit d96f003
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/arm/src/goldfish/goldfish_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion drivers/devicetree/fdt_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit d96f003

Please sign in to comment.