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:
Erwan Gouriou 2018-12-07 11:09:28 +01:00 committed by Anas Nashif
commit 9062e97a45
12 changed files with 52 additions and 17 deletions

View file

@ -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;
}