From 2026eb0fdbd82dec2c3b03926aab5916da6a9e4e Mon Sep 17 00:00:00 2001
From: Alessandro Rubini <rubini@gnudd.com>
Date: Thu, 2 Feb 2012 16:45:21 +0100
Subject: [PATCH] trig-irq: bugfix in free_irq

I used a wrong dev_data in free_irq. Now it works properly on unload.

Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
Acked-by: Federico Vaga <federico.vaga@gmail.com>
---
 triggers/zio-trig-irq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/triggers/zio-trig-irq.c b/triggers/zio-trig-irq.c
index cb5dc1b..b3110cd 100644
--- a/triggers/zio-trig-irq.c
+++ b/triggers/zio-trig-irq.c
@@ -123,7 +123,7 @@ static struct zio_ti *zti_create(struct zio_trigger_type *trig,
 static void zti_destroy(struct zio_ti *ti)
 {
 	pr_debug("%s:%d\n", __func__, __LINE__);
-	free_irq(zti_irq, &ti);
+	free_irq(zti_irq, ti);
 	kfree(ti);
 }
 
-- 
GitLab