]> git.baikalelectronics.ru Git - kernel.git/commitdiff
Input: adp5588-keys - do not check for irq presence
authorNuno Sá <nuno.sa@analog.com>
Wed, 31 Aug 2022 04:09:32 +0000 (21:09 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 31 Aug 2022 04:16:28 +0000 (21:16 -0700)
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>
drivers/input/keyboard/adp5588-keys.c

index 77d538ed459746ac7c3965b5a063244a7447c4d1..9ff35910fc5dae7f7964a76a2868b71a2418b2de 100644 (file)
@@ -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;