30 lines
972 B
Diff
30 lines
972 B
Diff
From 687e5f2d2e87de3266d50fdc8b6c5820189dbe85 Mon Sep 17 00:00:00 2001
|
|
From: Ondrej Jirman <megous@megous.com>
|
|
Date: Sat, 28 Sep 2019 18:01:49 +0200
|
|
Subject: [PATCH 173/478] input: cyttsp4: ENOSYS error is ok when powering up
|
|
|
|
This error is handled gracefully, don't report it.
|
|
|
|
Signed-off-by: Ondrej Jirman <megous@megous.com>
|
|
---
|
|
drivers/input/touchscreen/cyttsp4_core.c | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/drivers/input/touchscreen/cyttsp4_core.c b/drivers/input/touchscreen/cyttsp4_core.c
|
|
index 3addb701f504..985e7c2f7cf1 100644
|
|
--- a/drivers/input/touchscreen/cyttsp4_core.c
|
|
+++ b/drivers/input/touchscreen/cyttsp4_core.c
|
|
@@ -1766,7 +1766,8 @@ static int cyttsp4_core_wake_(struct cyttsp4 *cd)
|
|
rc = -ENOSYS;
|
|
}
|
|
if (rc < 0) {
|
|
- dev_err(dev, "%s: HW Power up fails r=%d\n",
|
|
+ if (rc != -ENOSYS)
|
|
+ dev_err(dev, "%s: HW Power up fails r=%d\n",
|
|
__func__, rc);
|
|
|
|
/* Initiate a read transaction to wake up */
|
|
--
|
|
2.35.3
|
|
|