drivers: stm32: check clock_control_on return value
Check clock_control_on return value now that it is checking appropriate bus is used in the request. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
f6b014e6dd
commit
9062e97a45
12 changed files with 52 additions and 17 deletions
|
@ -99,6 +99,7 @@ static int i2s_stm32_enable_clock(struct device *dev)
|
|||
|
||||
ret = clock_control_on(clk, (clock_control_subsys_t *) &cfg->pclken);
|
||||
if (ret != 0) {
|
||||
LOG_ERR("Could not enable I2S clock");
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue