Commit b840333e authored by Jonathan Cameron's avatar Jonathan Cameron

staging:iio:trigger:gpio bug in release of gpio in error path

Also dropped the unneeded gpio.h header.
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
Reviewed-by: default avatarLars-Peter Clausen <lars@metafoo.de>
parent 00738ff6
......@@ -19,7 +19,6 @@
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/interrupt.h>
#include <linux/gpio.h>
#include <linux/slab.h>
#include <linux/iio/iio.h>
......@@ -122,7 +121,7 @@ static int iio_gpio_trigger_probe(struct platform_device *pdev)
&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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment