summaryrefslogtreecommitdiffstats
path: root/bsps/riscv/riscv/clock/clockdrv.c
diff options
context:
space:
mode:
Diffstat (limited to 'bsps/riscv/riscv/clock/clockdrv.c')
-rw-r--r--bsps/riscv/riscv/clock/clockdrv.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/bsps/riscv/riscv/clock/clockdrv.c b/bsps/riscv/riscv/clock/clockdrv.c
index 677823c4c8..4220952ae3 100644
--- a/bsps/riscv/riscv/clock/clockdrv.c
+++ b/bsps/riscv/riscv/clock/clockdrv.c
@@ -119,19 +119,13 @@ static void riscv_clock_initialize(void)
{
const char *fdt;
riscv_timecounter *tc;
- int node;
uint32_t tb_freq;
uint64_t us_per_tick;
fdt = bsp_fdt_get();
- tc = &riscv_clock_tc;
-
- node = fdt_node_offset_by_compatible(fdt, -1, "riscv,clint0");
- tc->clint = riscv_fdt_get_address(fdt, node);
- if (tc->clint == NULL) {
- bsp_fatal(RISCV_FATAL_NO_CLINT_REG_IN_DEVICE_TREE);
- }
+ tc = &riscv_clock_tc;
+ tc->clint = riscv_clint;
tb_freq = riscv_clock_get_timebase_frequency(fdt);
us_per_tick = rtems_configuration_get_microseconds_per_tick();