drivers: adc: gd32: fix ADC clock source retrieval
The clock source is specified via rcu-clock-source in DT. Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
parent
ca39f657b1
commit
1c7138fbb1
1 changed files with 1 additions and 1 deletions
|
@ -435,7 +435,7 @@ static void adc_gd32_global_irq_cfg(void)
|
|||
|
||||
#ifdef CONFIG_SOC_SERIES_GD32F3X0
|
||||
#define ADC_CLOCK_SOURCE(n) \
|
||||
.rcu_clock_source = DT_INST_PROP(n, rcu_periph_clock)
|
||||
.rcu_clock_source = DT_INST_PROP(n, rcu_clock_source)
|
||||
#else
|
||||
#define ADC_CLOCK_SOURCE(n)
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue