From b840333e955eff9a8db33af1e1ff409ca4e55502 Mon Sep 17 00:00:00 2001 From: Jonathan Cameron Date: Sun, 2 Jun 2013 20:00:00 +0100 Subject: [PATCH] staging:iio:trigger:gpio bug in release of gpio in error path Also dropped the unneeded gpio.h header. Signed-off-by: Jonathan Cameron Reviewed-by: Lars-Peter Clausen --- drivers/staging/iio/trigger/iio-trig-gpio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/iio/trigger/iio-trig-gpio.c b/drivers/staging/iio/trigger/iio-trig-gpio.c index 7c593d18a910..69dabca0f4e8 100644 --- a/drivers/staging/iio/trigger/iio-trig-gpio.c +++ b/drivers/staging/iio/trigger/iio-trig-gpio.c @@ -19,7 +19,6 @@ #include #include #include -#include #include #include @@ -122,7 +121,7 @@ error_free_completed_registrations: &iio_gpio_trigger_list, alloc_list) { trig_info = iio_trigger_get_drvdata(trig); - free_irq(gpio_to_irq(trig_info->irq), trig); + free_irq(trig_info->irq, trig); kfree(trig_info); iio_trigger_unregister(trig); }