Browse Source

drivers: cache: andes: Fix incorrect DT_PROP usage

Remove redundant quotation marks when parsing
cache line size from DTS properties.

Signed-off-by: Wei-Tai Lee <wtlee@andestech.com>
pull/83141/head
Wei-Tai Lee 8 months ago committed by Benjamin Cabé
parent
commit
c351a0e044
  1. 4
      drivers/cache/cache_andes.c

4
drivers/cache/cache_andes.c vendored

@ -536,7 +536,7 @@ static int andes_cache_init(void) @@ -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");
@ -560,7 +560,7 @@ static int andes_cache_init(void) @@ -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");

Loading…
Cancel
Save