“f6c9f56394838021af5db26d046f3c90606a17fc”上不存在“release_doc/0.10.0/doc/api/v2/config/activation.html”
提交 e3f88ae9 编写于 作者: V Virupax Sadashivpetimath 提交者: Grant Likely

spi-pl022: Add missing return value update

Return error on out of range cpsdvsr value.
Acked-by: NLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: NVirupax Sadashivpetimath <virupax.sadashivpetimath@stericsson.com>
Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
上级 a80fd9db
...@@ -1861,6 +1861,7 @@ static int pl022_setup(struct spi_device *spi) ...@@ -1861,6 +1861,7 @@ static int pl022_setup(struct spi_device *spi)
} }
if ((clk_freq.cpsdvsr < CPSDVR_MIN) if ((clk_freq.cpsdvsr < CPSDVR_MIN)
|| (clk_freq.cpsdvsr > CPSDVR_MAX)) { || (clk_freq.cpsdvsr > CPSDVR_MAX)) {
status = -EINVAL;
dev_err(&spi->dev, dev_err(&spi->dev,
"cpsdvsr is configured incorrectly\n"); "cpsdvsr is configured incorrectly\n");
goto err_config_params; goto err_config_params;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册