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:
b34f51f
)
[media] s5p-mfc: fix error return code in s5p_mfc_probe()
author
Wei Yongjun
<
[email protected]
>
Thu, 18 Apr 2013 02:18:19 +0000
(23:18 -0300)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Thu, 25 Apr 2013 12:37:24 +0000
(09:37 -0300)
Fix to return a negative error code from the error handling
case instead of 0, as returned elsewhere in this function.
Signed-off-by: Wei Yongjun <
[email protected]
>
Acked-by: Kamil Debski <
[email protected]
>
Signed-off-by: Sylwester Nawrocki <
[email protected]
>
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/media/platform/s5p-mfc/s5p_mfc.c
patch
|
blob
|
history
diff --git
a/drivers/media/platform/s5p-mfc/s5p_mfc.c
b/drivers/media/platform/s5p-mfc/s5p_mfc.c
index e810b1abf40e4d534f623f479d0f18d7472272b4..a5853fa5953105c3e03a00b5c7f5c5cf404ece61 100644
(file)
--- a/
drivers/media/platform/s5p-mfc/s5p_mfc.c
+++ b/
drivers/media/platform/s5p-mfc/s5p_mfc.c
@@
-1110,7
+1110,8
@@
static int s5p_mfc_probe(struct platform_device *pdev)
}
if (pdev->dev.of_node) {
- if (s5p_mfc_alloc_memdevs(dev) < 0)
+ ret = s5p_mfc_alloc_memdevs(dev);
+ if (ret < 0)
goto err_res;
} else {
dev->mem_dev_l = device_find_child(&dev->plat_dev->dev,