mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
spi-pl022: Add missing return value update
Return error on out of range cpsdvsr value. Acked-by: Linus Walleij <[email protected]> Signed-off-by: Virupax Sadashivpetimath <[email protected]> Signed-off-by: Grant Likely <[email protected]>
This commit is contained in:
parent
a80fd9db0e
commit
e3f88ae996
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue