From: Virupax Sadashivpetimath Date: Mon, 13 Jun 2011 10:53:46 +0000 (+0530) Subject: spi-pl022: Add missing return value update X-Git-Tag: v3.0-rc3~6^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e3f88ae9960920598cad132c553019ee79ff3aca;p=profile%2Fivi%2Fkernel-x86-ivi.git spi-pl022: Add missing return value update Return error on out of range cpsdvsr value. Acked-by: Linus Walleij Signed-off-by: Virupax Sadashivpetimath Signed-off-by: Grant Likely --- diff --git a/drivers/spi/amba-pl022.c b/drivers/spi/amba-pl022.c index 6a9e58d..d18ce9e 100644 --- a/drivers/spi/amba-pl022.c +++ b/drivers/spi/amba-pl022.c @@ -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;