]> 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)
commit698ebe1ffcacb50da50031e6adb80a3e04d98b61
treeb9e4764bd7096814acc594e4e4f44b1628d4353e
parentac4c45f2e94c4d6d28b934641a0643f05774f577
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