Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1314443 > unrolled thread
| Started by | Oreste Salerno <oreste.salerno@tomtom.com> |
|---|---|
| First post | 2016-01-21 20:30 +0100 |
| Last post | 2016-01-21 20:30 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH v4 2/4] Input: cyttsp - check return value of input_mt_init_slots Oreste Salerno <oreste.salerno@tomtom.com> - 2016-01-21 20:30 +0100
| From | Oreste Salerno <oreste.salerno@tomtom.com> |
|---|---|
| Date | 2016-01-21 20:30 +0100 |
| Subject | [PATCH v4 2/4] Input: cyttsp - check return value of input_mt_init_slots |
| Message-ID | <qTt5E-1hZ-5@gated-at.bofh.it> |
Signed-off-by: Oreste Salerno <oreste.salerno@tomtom.com>
---
drivers/input/touchscreen/cyttsp_core.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/input/touchscreen/cyttsp_core.c b/drivers/input/touchscreen/cyttsp_core.c
index 3c2ee84..10379bc 100644
--- a/drivers/input/touchscreen/cyttsp_core.c
+++ b/drivers/input/touchscreen/cyttsp_core.c
@@ -584,7 +584,11 @@ struct cyttsp *cyttsp_probe(const struct cyttsp_bus_ops *bus_ops,
input_set_abs_params(input_dev, ABS_MT_TOUCH_MAJOR,
0, CY_MAXZ, 0, 0);
- input_mt_init_slots(input_dev, CY_MAX_ID, 0);
+ error = input_mt_init_slots(input_dev, CY_MAX_ID, 0);
+ if (error) {
+ dev_err(dev, "Unable to init MT slots.\n");
+ goto err_platform_exit;
+ }
error = devm_request_threaded_irq(dev, ts->irq, NULL, cyttsp_irq,
IRQF_TRIGGER_FALLING | IRQF_ONESHOT,
--
1.9.1
Back to top | Article view | linux.kernel
csiph-web