Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: cap11xx - remove unnecessary IRQ parsing

Separate IRQ parsing is not necessary, I2C core do the job.

Signed-off-by: Jiri Valek - 2N <jiriv@axis.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Jiri Valek - 2N and committed by
Dmitry Torokhov
fedfa36d ccb9e9dd

+4 -9
+4 -9
drivers/input/keyboard/cap11xx.c
··· 10 10 #include <linux/interrupt.h> 11 11 #include <linux/input.h> 12 12 #include <linux/leds.h> 13 - #include <linux/of_irq.h> 13 + #include <linux/of.h> 14 14 #include <linux/regmap.h> 15 15 #include <linux/i2c.h> 16 16 #include <linux/gpio/consumer.h> ··· 334 334 struct cap11xx_priv *priv; 335 335 struct device_node *node; 336 336 const struct cap11xx_hw_model *cap; 337 - int i, error, irq, gain = 0; 337 + int i, error, gain = 0; 338 338 unsigned int val, rev; 339 339 u32 gain32; 340 340 ··· 474 474 if (error) 475 475 return error; 476 476 477 - irq = irq_of_parse_and_map(node, 0); 478 - if (!irq) { 479 - dev_err(dev, "Unable to parse or map IRQ\n"); 480 - return -ENXIO; 481 - } 482 - 483 - error = devm_request_threaded_irq(dev, irq, NULL, cap11xx_thread_func, 477 + error = devm_request_threaded_irq(dev, i2c_client->irq, 478 + NULL, cap11xx_thread_func, 484 479 IRQF_ONESHOT, dev_name(dev), priv); 485 480 if (error) 486 481 return error;