Commit 47dabaee authored by Axel Lin's avatar Axel Lin Committed by Samuel Ortiz

mfd: Fix ezx_pcap_probe error path

return -ENOMEM if create_singlethread_workqueue failed.
Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent a8d6aa08
...@@ -465,6 +465,7 @@ static int __devinit ezx_pcap_probe(struct spi_device *spi) ...@@ -465,6 +465,7 @@ static int __devinit ezx_pcap_probe(struct spi_device *spi)
pcap->irq_base = pdata->irq_base; pcap->irq_base = pdata->irq_base;
pcap->workqueue = create_singlethread_workqueue("pcapd"); pcap->workqueue = create_singlethread_workqueue("pcapd");
if (!pcap->workqueue) { if (!pcap->workqueue) {
ret = -ENOMEM;
dev_err(&spi->dev, "cant create pcap thread\n"); dev_err(&spi->dev, "cant create pcap thread\n");
goto free_pcap; goto free_pcap;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment