[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAPgLHd90ZfRjXAt6qYsk4RmBh1sb8VRq00gkNrtPEKdJfUXTaA@mail.gmail.com>
Date: Thu, 16 May 2013 12:08:56 +0800
From: Wei Yongjun <weiyj.lk@...il.com>
To: broonie@...nel.org, grant.likely@...aro.org
Cc: yongjun_wei@...ndmicro.com.cn,
spi-devel-general@...ts.sourceforge.net,
linux-kernel@...r.kernel.org
Subject: [PATCH] spi: ep93xx: fix error return code in ep93xx_spi_probe()
From: Wei Yongjun <yongjun_wei@...ndmicro.com.cn>
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@...ndmicro.com.cn>
---
drivers/spi/spi-ep93xx.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/spi/spi-ep93xx.c b/drivers/spi/spi-ep93xx.c
index 8d4f2a6..2ee5e74 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);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists