drivers: dac: esp32: clock initialization fix
Fixed ESP32 DAC clock initialization Fixes: #70295 Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
This commit is contained in:
parent
2353b9391b
commit
0705aaeb81
1 changed files with 1 additions and 2 deletions
|
@ -63,8 +63,7 @@ static int dac_esp32_init(const struct device *dev)
|
|||
return -ENODEV;
|
||||
}
|
||||
|
||||
if (clock_control_on(cfg->clock_dev,
|
||||
(clock_control_subsys_t) &cfg->clock_subsys) != 0) {
|
||||
if (clock_control_on(cfg->clock_dev, (clock_control_subsys_t)cfg->clock_subsys) != 0) {
|
||||
LOG_ERR("DAC clock setup failed (%d)", -EIO);
|
||||
return -EIO;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue