diff options
author | Nuno Sá <nuno.sa@analog.com> | 2022-08-31 06:09:32 +0200 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2022-08-31 06:16:28 +0200 |
commit | 0063aecc61e1beec09611d830f4aae5a90a96c54 (patch) | |
tree | 3a5bc5e6a91e508a99a76cb0a84131f09e12fa01 /drivers | |
parent | dt-bindings: input: adp5588: add bindings (diff) | |
download | linux-0063aecc61e1beec09611d830f4aae5a90a96c54.tar.xz linux-0063aecc61e1beec09611d830f4aae5a90a96c54.zip |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/input/keyboard/adp5588-keys.c | 5 |
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; |