diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-05-16 06:08:56 +0200 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-05-16 19:39:11 +0200 |
commit | 27474d268c20a0e62f71065a043c08f5adb2419d (patch) | |
tree | b71c8cab33d0d9178b6add743bb96a8c53cdf682 /drivers/spi/spi-ep93xx.c | |
parent | Linux 3.10-rc1 (diff) | |
download | linux-27474d268c20a0e62f71065a043c08f5adb2419d.tar.xz linux-27474d268c20a0e62f71065a043c08f5adb2419d.zip |
spi: ep93xx: fix error return code in ep93xx_spi_probe()
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>
Diffstat (limited to 'drivers/spi/spi-ep93xx.c')
-rw-r--r-- | drivers/spi/spi-ep93xx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/spi-ep93xx.c b/drivers/spi/spi-ep93xx.c index d7bac60253c9..5c63e1323160 100644 --- 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); |