projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81ce5b7
)
Input: adp5588-keys - do not check for irq presence
author
Nuno Sá
<nuno.sa@analog.com>
Wed, 31 Aug 2022 04:09:32 +0000
(21:09 -0700)
committer
Dmitry 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
patch
|
blob
|
history
diff --git
a/drivers/input/keyboard/adp5588-keys.c
b/drivers/input/keyboard/adp5588-keys.c
index 77d538ed459746ac7c3965b5a063244a7447c4d1..9ff35910fc5dae7f7964a76a2868b71a2418b2de 100644
(file)
--- 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;