projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f722406
)
spi: ep93xx: fix error return code in ep93xx_spi_probe()
author
Wei Yongjun
<yongjun_wei@trendmicro.com.cn>
Thu, 16 May 2013 04:08:56 +0000
(12:08 +0800)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Thu, 16 May 2013 17:39:11 +0000
(18:39 +0100)
Fix to return -ENOMEM in the workqueue create error handling
case instead of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/spi/spi-ep93xx.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-ep93xx.c
b/drivers/spi/spi-ep93xx.c
index d7bac60253c9c92cd2b542b9a17e8bd9d4088291..5c63e1323160b29cedfa354803cbe075befbf612 100644
(file)
--- a/
drivers/spi/spi-ep93xx.c
+++ b/
drivers/spi/spi-ep93xx.c
@@
-1104,6
+1104,7
@@
static int ep93xx_spi_probe(struct platform_device *pdev)
espi->wq = create_singlethread_workqueue("ep93xx_spid");
if (!espi->wq) {
dev_err(&pdev->dev, "unable to create workqueue\n");
+ error = -ENOMEM;
goto fail_free_dma;
}
INIT_WORK(&espi->msg_work, ep93xx_spi_work);