From: Jonathan Cameron Date: Sun, 2 Jun 2013 19:00:00 +0000 (+0100) Subject: staging:iio:trigger:gpio bug in release of gpio in error path X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b840333e955eff9a8db33af1e1ff409ca4e55502;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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); }