Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ba8f8732 authored by Amy Maloche's avatar Amy Maloche
Browse files

input: atmel_mxt_ts: Re-parse IRQ to ensure correct mapping



Call irq_of_parse_and_map before requesting IRQ.  Without
this call, incorrect IRQ flags may be used.

Change-Id: I79672797c4b0209cfaec6b7912465725e8cb5d3d
Signed-off-by: default avatarAmy Maloche <amaloche@codeaurora.org>
parent 60e6ad84
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@
#include <linux/regulator/consumer.h>
#include <linux/string.h>
#include <linux/of_gpio.h>
#include <linux/of_irq.h>

#if defined(CONFIG_FB)
#include <linux/notifier.h>
@@ -3181,6 +3182,10 @@ static int mxt_probe(struct i2c_client *client,
	if (error)
		goto err_irq_gpio_req;

	error = irq_of_parse_and_map(client->dev.of_node, 0);
	if (!error)
		goto err_irq_gpio_req;

	error = request_threaded_irq(client->irq, NULL, mxt_interrupt,
			pdata->irqflags | IRQF_ONESHOT,
			client->dev.driver->name, data);