summaryrefslogtreecommitdiffstats
path: root/bsps/riscv/griscv/console/printk_support.c
diff options
context:
space:
mode:
Diffstat (limited to 'bsps/riscv/griscv/console/printk_support.c')
-rw-r--r--bsps/riscv/griscv/console/printk_support.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsps/riscv/griscv/console/printk_support.c b/bsps/riscv/griscv/console/printk_support.c
index f8c14692c1..e789924e4f 100644
--- a/bsps/riscv/griscv/console/printk_support.c
+++ b/bsps/riscv/griscv/console/printk_support.c
@@ -64,7 +64,7 @@ static void bsp_debug_uart_init(void)
/* Find APBUART core for System Debug Console */
i = grlib_debug_uart_index;
- adev = (void *)ambapp_for_each(&ambapp_plb, (OPTIONS_ALL|OPTIONS_APB_SLVS),
+ adev = (void *)ambapp_for_each(ambapp_plb(), (OPTIONS_ALL|OPTIONS_APB_SLVS),
VENDOR_GAISLER, GAISLER_APBUART,
ambapp_find_by_idx, (void *)&i);
if (adev) {