]> asedeno.scripts.mit.edu Git - linux.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)
commitb19c25f46745cd57715c32d3ace9c79d1426bebd
treeb9e4764bd7096814acc594e4e4f44b1628d4353e
parent2289adbfa559050d2a38bcd9caac1c18b800e928
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