projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a80fd9d
)
spi-pl022: Add missing return value update
author
Virupax Sadashivpetimath
<
[email protected]
>
Mon, 13 Jun 2011 10:53:46 +0000
(16:23 +0530)
committer
Grant Likely
<
[email protected]
>
Mon, 13 Jun 2011 15:18:45 +0000
(09:18 -0600)
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]
>
drivers/spi/amba-pl022.c
patch
|
blob
|
history
diff --git
a/drivers/spi/amba-pl022.c
b/drivers/spi/amba-pl022.c
index 6a9e58dd36c7e17cd5d4a7bbd58ed10ab4476f32..d18ce9e946d8d085b9ecf0c8fefe9cc88cd99334 100644
(file)
--- 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;