diff options
author | Dariusz Marcinkiewicz <darekm@google.com> | 2020-06-22 14:46:36 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-08-19 09:16:10 +0300 |
commit | deaf69f5b028b926a0a0b85913de974cdebbe824 (patch) | |
tree | 1f4f020d7fc68536a1fcf37b6933db17c60d5d4f /fs/xfs | |
parent | 951a2126157729fed13f942b6a7f106d96ab8b5c (diff) | |
download | linux-deaf69f5b028b926a0a0b85913de974cdebbe824.tar.xz |
media: cros-ec-cec: do not bail on device_init_wakeup failure
[ Upstream commit 6f01dfb760c027d5dd6199d91ee9599f2676b5c6 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/xfs')
0 files changed, 0 insertions, 0 deletions