build: Update backports/v2.6.37_dont_use_alloc_ordered_workqueue.patch
Commit Message
From: Jasmin Jessich <jasmin@anw.at>
Signed-off-by: Jasmin Jessich <jasmin@anw.at>
---
backports/v2.6.37_dont_use_alloc_ordered_workqueue.patch | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Comments
Hi!
Even with this patch Kernel 2.6.x can't be compiled due to "linux/bsearch.h"
missing. But this patch is the first step in the right direction.
BR,
Jasmin
@@ -2,13 +2,13 @@ diff --git a/drivers/media/pci/cx18/cx18-driver.c b/drivers/media/pci/cx18/cx18-
index 004d8ac..6508785 100644
--- a/drivers/media/pci/cx18/cx18-driver.c
+++ b/drivers/media/pci/cx18/cx18-driver.c
-@@ -695,7 +695,7 @@ static int cx18_create_in_workq(struct cx18 *cx)
+@@ -697,7 +697,7 @@ static int cx18_create_in_workq(struct cx18 *cx)
{
snprintf(cx->in_workq_name, sizeof(cx->in_workq_name), "%s-in",
cx->v4l2_dev.name);
- cx->in_work_queue = alloc_ordered_workqueue(cx->in_workq_name, 0);
+ cx->in_work_queue = create_singlethread_workqueue(cx->in_workq_name);
- if (cx->in_work_queue == NULL) {
+ if (!cx->in_work_queue) {
CX18_ERR("Unable to create incoming mailbox handler thread\n");
return -ENOMEM;
@@ -703,6 +703,18 @@ static int cx18_create_in_workq(struct cx18 *cx)