Skip to contentSkip to conversation

twl4030: Fix warning

PATCH Applied Alan Cox 2 participants 2 messages Nov 17, 2009 – Nov 20, 2009

Subsystems (2)
lore
Share & tools
lore

Alan Cox

author
#0 lore raw

PATCH 1/1 twl4030: Fix warning

---

 drivers/mfd/twl4030-irq.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/mfd/twl4030-irq.c +2 -1
index fb194fe..c78b5ad 100644
@@ -728,7 +728,8 @@ int twl_init_irq(int irq_num, unsigned irq_base, unsigned irq_end)
 		goto fail_rqirq;
 	}
 
-	task = kthread_run(twl4030_irq_thread, (void *)irq_num, "twl4030-irq");
+	task = kthread_run(twl4030_irq_thread, (void *)(long)irq_num,
+								"twl4030-irq");
 	if (IS_ERR(task)) {
 		pr_err("twl4030: could not create irq %d thread!\n", irq_num);
 		status = PTR_ERR(task);
Applied
#1 lore raw
Quoted 1 line · Alan Cox

Applied, thanks Alan.

Cheers,
Samuel.

Quoted 21 lines

---

 drivers/mfd/twl4030-irq.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/mfd/twl4030-irq.c +2 -1
index fb194fe..c78b5ad 100644
@@ -728,7 +728,8 @@ int twl_init_irq(int irq_num, unsigned irq_base, unsigned irq_end)
 		goto fail_rqirq;
 	}
 
-	task = kthread_run(twl4030_irq_thread, (void *)irq_num, "twl4030-irq");
+	task = kthread_run(twl4030_irq_thread, (void *)(long)irq_num,
+								"twl4030-irq");
 	if (IS_ERR(task)) {
 		pr_err("twl4030: could not create irq %d thread!\n", irq_num);
 		status = PTR_ERR(task);
Signature · 2 lines
Intel Open Source Technology Centre
http://oss.intel.com/