diff options
| author | Grygorii Strashko <grygorii.strashko@ti.com> | 2016-01-16 13:35:47 -0500 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2016-01-27 18:56:24 -0500 |
| commit | 015bb5e134544492d840cee17d7442194cfb0fe4 (patch) | |
| tree | a147728932aca27a93c0d9180b1d3faac3e9af83 | |
| parent | 497e1b3f6b6d3cf2206d15687eb7bfa0ab0e968d (diff) | |
Input: serio - drop warnings in case of EPROBE_DEFER from serio_find_driver()
Now serio_find_driver() will print warnings in case device_attach()
returns -EPROBE_DEFER. Those warnings are obsolete, in genral, because:
- DD core can report the same if required
- since commit 013c074f8642 ("PM / sleep: prohibit devices probing
during suspend/hibernation") the devices probing is prohibited during
System suspend and deferred device will be carefully reprobed once
Resume is finished.
Hence, drop warnings in case of EPROBE_DEFER from serio_find_driver().
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
| -rw-r--r-- | drivers/input/serio/serio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/serio/serio.c b/drivers/input/serio/serio.c index 8f828975ab10..1ca7f551e2da 100644 --- a/drivers/input/serio/serio.c +++ b/drivers/input/serio/serio.c | |||
| @@ -134,7 +134,7 @@ static void serio_find_driver(struct serio *serio) | |||
| 134 | int error; | 134 | int error; |
| 135 | 135 | ||
| 136 | error = device_attach(&serio->dev); | 136 | error = device_attach(&serio->dev); |
| 137 | if (error < 0) | 137 | if (error < 0 && error != -EPROBE_DEFER) |
| 138 | dev_warn(&serio->dev, | 138 | dev_warn(&serio->dev, |
| 139 | "device_attach() failed for %s (%s), error: %d\n", | 139 | "device_attach() failed for %s (%s), error: %d\n", |
| 140 | serio->phys, serio->name, error); | 140 | serio->phys, serio->name, error); |
