mfd: Fix ezx_pcap_probe error path
PATCH 1/1 mfd: Fix ezx_pcap_probe error path
return -ENOMEM if create_singlethread_workqueue failed.
Signed-off-by Axel Lin <[email protected]>
--- drivers/mfd/ezx-pcap.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/mfd/ezx-pcap.c +1 -0
@@ -465,6 +465,7 @@ static int __devinit ezx_pcap_probe(struct spi_device *spi) pcap->irq_base = pdata->irq_base; pcap->workqueue =create_singlethread_workqueue ("pcapd" );if (!pcap->workqueue) { + ret = -ENOMEM ;dev_err (&spi->dev,"cant create pcap thread\n" ); goto free_pcap; }
Signature · 1 line
1.7.0.4
Hi Axel,
Quoted 1 line · Axel Lin
return
-ENOMEMifcreate_singlethread_workqueuefailed.
Thanks for the patch, applied to my for-next branch.
Cheers,
Samuel.
Quoted 22 lines
Signed-off-by Axel Lin <[email protected]>--- drivers/mfd/ezx-pcap.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)drivers/mfd/ezx-pcap.c +1
-0@@ -465,6 +465,7 @@ static int __devinit ezx_pcap_probe(struct spi_device *spi) pcap->irq_base = pdata->irq_base; pcap->workqueue =create_singlethread_workqueue ("pcapd" );if (!pcap->workqueue) { + ret = -ENOMEM ;dev_err (&spi->dev,"cant create pcap thread\n" ); goto free_pcap; }Signature · 1 line
1.7.0.4
Signature · 2 lines
Intel Open Source Technology Centre http://oss.intel.com/