summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNuno Sá <nuno.sa@analog.com>2022-08-31 07:09:32 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2022-08-31 07:16:28 +0300
commit0063aecc61e1beec09611d830f4aae5a90a96c54 (patch)
tree3a5bc5e6a91e508a99a76cb0a84131f09e12fa01
parent81ce5b77417ac9623d1c6270a2f75a0a3a734d0d (diff)
downloadlinux-0063aecc61e1beec09611d830f4aae5a90a96c54.tar.xz
Input: adp5588-keys - do not check for irq presence
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> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Link: https://lore.kernel.org/r/20220829131553.690063-7-nuno.sa@analog.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
-rw-r--r--drivers/input/keyboard/adp5588-keys.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/input/keyboard/adp5588-keys.c b/drivers/input/keyboard/adp5588-keys.c
index 77d538ed4597..9ff35910fc5d 100644
--- a/drivers/input/keyboard/adp5588-keys.c
+++ b/drivers/input/keyboard/adp5588-keys.c
@@ -728,11 +728,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;