media: stm32-dcmi: return appropriate error codes during probe
authorFabien Dessenne <fabien.dessenne@st.com>
Wed, 24 Apr 2019 13:25:44 +0000 (09:25 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 30 Apr 2019 17:48:14 +0000 (13:48 -0400)
commitb5b5a27bee5884860798ffd0f08e611a3942064b
treec4c50fe3669119fb017dc4b0294d25ab793dfbb2
parent7afa8db323e37b9174cf78a1c9ab0ae7a9f5e7dd
media: stm32-dcmi: return appropriate error codes during probe

During probe, return the provided errors value instead of -ENODEV.
This allows the driver to be deferred probed if needed.

Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com>
Acked-by: Hugues Fruchet <hugues.fruchet@st.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/stm32/stm32-dcmi.c