Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e3f88ae9 authored by Virupax Sadashivpetimath's avatar Virupax Sadashivpetimath Committed by Grant Likely
Browse files

spi-pl022: Add missing return value update



Return error on out of range cpsdvsr value.

Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarVirupax Sadashivpetimath <virupax.sadashivpetimath@stericsson.com>
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent a80fd9db
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;