spi-pl022: Add missing return value update
Return error on out of range cpsdvsr value. Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Virupax Sadashivpetimath <virupax.sadashivpetimath@stericsson.com> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
This commit is contained in:
Родитель
a80fd9db0e
Коммит
e3f88ae996
|
@ -1861,6 +1861,7 @@ static int pl022_setup(struct spi_device *spi)
|
|||
}
|
||||
if ((clk_freq.cpsdvsr < CPSDVR_MIN)
|
||||
|| (clk_freq.cpsdvsr > CPSDVR_MAX)) {
|
||||
status = -EINVAL;
|
||||
dev_err(&spi->dev,
|
||||
"cpsdvsr is configured incorrectly\n");
|
||||
goto err_config_params;
|
||||
|
|
Загрузка…
Ссылка в новой задаче