linux/drivers/media/platform
Dariusz Marcinkiewicz deaf69f5b0 media: cros-ec-cec: do not bail on device_init_wakeup failure
[ Upstream commit 6f01dfb760 ]

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: cd70de2d35 ("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>
2020-08-19 08:16:10 +02:00
..
am437x
atmel
cadence
cec-gpio
coda
cros-ec-cec media: cros-ec-cec: do not bail on device_init_wakeup failure 2020-08-19 08:16:10 +02:00
davinci
exynos-gsc
exynos4-is media: exynos4-is: Add missed check for pinctrl_lookup_state() 2020-08-19 08:16:10 +02:00
marvell-ccic media: marvell-ccic: Add missed v4l2_async_notifier_cleanup() 2020-08-19 08:16:08 +02:00
meson
mtk-jpeg
mtk-mdp
mtk-vcodec
mtk-vpu
omap
omap3isp media: omap3isp: Add missed v4l2_ctrl_handler_free() for preview_init_entities() 2020-08-19 08:16:08 +02:00
qcom
rcar-vin
rockchip/rga
s3c-camif
s5p-cec
s5p-g2d
s5p-jpeg
s5p-mfc
seco-cec
sti
stm32
sunxi
tegra-cec
ti-vpe
vicodec
vimc
vivid
vsp1
xilinx
Kconfig
Makefile
aspeed-video.c
fsl-viu.c
imx-pxp.c
imx-pxp.h
m2m-deinterlace.c
mx2_emmaprp.c
pxa_camera.c
rcar-fcp.c
rcar_drif.c
rcar_fdp1.c
rcar_jpu.c
renesas-ceu.c
sh_veu.c
sh_vou.c
via-camera.c
via-camera.h
video-mux.c
vim2m.c