diff mbox series

[v2,06/10] input: keyboard: adp5588-keys: do not check for irq presence

Message ID 20220715125138.378632-7-nuno.sa@analog.com
State Accepted
Commit 0063aecc61e1beec09611d830f4aae5a90a96c54
Headers show
Series adp5588-keys refactor and fw properties support | expand

Commit Message

Nuno Sa July 15, 2022, 12:51 p.m. UTC
There's no need for an extra check for 'client-irq'. Just let it fail when
calling 'request_irq()'.

Signed-off-by: Nuno Sá <nuno.sa@analog.com>
---
 drivers/input/keyboard/adp5588-keys.c | 5 -----
 1 file changed, 5 deletions(-)
diff mbox series

Patch

diff --git a/drivers/input/keyboard/adp5588-keys.c b/drivers/input/keyboard/adp5588-keys.c
index 780573715033..2e0816c42b58 100644
--- a/drivers/input/keyboard/adp5588-keys.c
+++ b/drivers/input/keyboard/adp5588-keys.c
@@ -722,11 +722,6 @@  static int adp5588_probe(struct i2c_client *client,
 		return -EIO;
 	}
 
-	if (!client->irq) {
-		dev_err(&client->dev, "no IRQ?\n");
-		return -EINVAL;
-	}
-
 	kpad = devm_kzalloc(&client->dev, sizeof(*kpad), GFP_KERNEL);
 	if (!kpad)
 		return -ENOMEM;