OSDN Git Service

adv7481: Add early error returns
authorSuprith Malligere Shankaregowda <supgow@codeaurora.org>
Wed, 14 Mar 2018 16:58:24 +0000 (22:28 +0530)
committerGerrit - the friendly Code Review server <code-review@localhost>
Tue, 20 Mar 2018 04:37:22 +0000 (21:37 -0700)
commit6a45766c6df20bcac811bb33a9ffe816e38cbef9
tree04683c488186ba53600d17f9fc84dfb15c07b763
parentd99718532dba3d82158739ba43a21c728356500e
adv7481: Add early error returns

In boards without adv7481 chip present, there is a huge
boot time impact due to long time taken by probe failure
because of I2C communication failures. Add early returns
in case of error, to minimize the impact.

Change-Id: I74643ec8e35e16ba93b795cccd8c709c8e530889
Signed-off-by: Suprith Malligere Shankaregowda <supgow@codeaurora.org>
drivers/media/i2c/adv7481.c