]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: i2c: Defer probe if not endpoint found
authorDaniel Scally <djrscally@gmail.com>
Tue, 23 Nov 2021 00:00:05 +0000 (01:00 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 30 Nov 2021 09:54:07 +0000 (10:54 +0100)
commitba0c8045ea62e4870883570c65d86f1bc06eaa4c
treeccffd4c08a730a724d08d05c85e08554fe0c2dcd
parent651d1f2040ac46d87c67cfe512bbd7668c34fec6
media: i2c: Defer probe if not endpoint found

The ov8865 driver is one of those that can be connected to a CIO2
device by the cio2-bridge code. This means that the absence of an
endpoint for this device is not necessarily fatal, as one might be
built by the cio2-bridge when it probes. Return -EPROBE_DEFER if no
endpoint is found rather than a fatal error.

Signed-off-by: Daniel Scally <djrscally@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/ov8865.c