Skip to content

Commit

Permalink
drivers: cache: andes: Fix incorrect DT_PROP usage
Browse files Browse the repository at this point in the history
Remove redundant quotation marks when parsing
cache line size from DTS properties.

Signed-off-by: Wei-Tai Lee <[email protected]>
  • Loading branch information
wtlee1995 authored and kartben committed Dec 18, 2024
1 parent b3d3c0f commit c351a0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/cache/cache_andes.c
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ static int andes_cache_init(void)
cache_cfg.instr_line_size = CONFIG_ICACHE_LINE_SIZE;
#elif DT_NODE_HAS_PROP(DT_PATH(cpus, cpu_0), i_cache_line_size)
cache_cfg.instr_line_size =
DT_PROP(DT_PATH(cpus, cpu_0), "i_cache_line_size");
DT_PROP(DT_PATH(cpus, cpu_0), i_cache_line_size);
#else
LOG_ERR("Please specific the i-cache-line-size "
"CPU0 property of the DT");
Expand All @@ -560,7 +560,7 @@ static int andes_cache_init(void)
cache_cfg.data_line_size = CONFIG_DCACHE_LINE_SIZE;
#elif DT_NODE_HAS_PROP(DT_PATH(cpus, cpu_0), d_cache_line_size)
cache_cfg.data_line_size =
DT_PROP(DT_PATH(cpus, cpu_0), "d_cache_line_size");
DT_PROP(DT_PATH(cpus, cpu_0), d_cache_line_size);
#else
LOG_ERR("Please specific the d-cache-line-size "
"CPU0 property of the DT");
Expand Down

0 comments on commit c351a0e

Please sign in to comment.