From: Nuno Sá Date: Wed, 31 Aug 2022 04:09:32 +0000 (-0700) Subject: Input: adp5588-keys - do not check for irq presence X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0063aecc61e1beec09611d830f4aae5a90a96c54;p=linux.git 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á Reviewed-by: Andy Shevchenko Link: https://lore.kernel.org/r/20220829131553.690063-7-nuno.sa@analog.com Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/keyboard/adp5588-keys.c b/drivers/input/keyboard/adp5588-keys.c index 77d538ed45974..9ff35910fc5da 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;