]> git.baikalelectronics.ru Git - kernel.git/commit
media: adv7180: Only print 'chip found' message on successful probe
authorFabio Estevam <festevam@gmail.com>
Fri, 11 Oct 2019 10:49:19 +0000 (07:49 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 24 Oct 2019 21:32:19 +0000 (18:32 -0300)
commit3f36ad82a01e45fbf49da3849f7ef924e0715a64
treeb9e4764bd7096814acc594e4e4f44b1628d4353e
parentbcb0f7e617adaefdbc29b9da67392df08d4060a1
media: adv7180: Only print 'chip found' message on successful probe

Currently the "chip found" message is shown even in the case where the
I2C address is wrongly passed in the device tree, or also in the case of
probe failure, which is misleading.

To avoid such problem, move this message after real I2C transactions
have been successfully made and we are certain that the adv7180 is
really present and probed.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/adv7180.c