diff options
| author | Dariusz Marcinkiewicz <darekm@google.com> | 2020-06-22 13:46:36 +0200 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-07-04 12:45:45 +0200 |
| commit | 6f01dfb760c027d5dd6199d91ee9599f2676b5c6 (patch) | |
| tree | d49f4b6b41e181e6332c3a55de2046cf269ae162 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 0f879bab72f47e8ba2421a984e7acfa763d3e84e (diff) | |
| download | cachepc-linux-6f01dfb760c027d5dd6199d91ee9599f2676b5c6.tar.gz cachepc-linux-6f01dfb760c027d5dd6199d91ee9599f2676b5c6.zip | |
media: cros-ec-cec: do not bail on device_init_wakeup failure
Do not fail probing when device_init_wakeup fails.
device_init_wakeup fails when the device is already enabled as wakeup
device. Hence, the driver fails to probe the device if:
- The device has already been enabled for wakeup (by e.g. sysfs)
- The driver has been unloaded and is being loaded again.
This goal of the patch is to fix the above cases.
Overwhelming majority of the drivers do not check device_init_wakeup
return code.
Fixes: cd70de2d356ee ("media: platform: Add ChromeOS EC CEC driver")
Signed-off-by: Dariusz Marcinkiewicz <darekm@google.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
