OSDN Git Service

media: i2c: ov2659: Fix sensor detection to actually fail when device is not present
authorBenoit Parrot <bparrot@ti.com>
Mon, 30 Sep 2019 13:06:38 +0000 (10:06 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 1 Oct 2019 20:34:12 +0000 (17:34 -0300)
commit1bc06fdbdf540b99db45b4e32669822a8a1d6870
tree7e5f87ba313bd02c6a2211c86d3fe31a5ae80ee7
parent7359fac5a47897e6587ac82896257a60c700ac7d
media: i2c: ov2659: Fix sensor detection to actually fail when device is not present

Make sure that if the expected sensor device id register
is not recognized properly the failure is propagated
up so devices are not left partially initialized.

Signed-off-by: Benoit Parrot <bparrot@ti.com>
Signed-off-by: Jyri Sarha <jsarha@ti.com>
Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/ov2659.c