diff options
author | Sooman Jeong <sm5.jeong@samsung.com> | 2017-12-13 21:44:25 +0900 |
---|---|---|
committer | Jaehoon Chung <jh80.chung@samsung.com> | 2018-06-15 20:59:59 +0900 |
commit | 0542b99298d3145953e2ce1f0fa0e7a31d59214d (patch) | |
tree | f0ce7b53ecaf05b77de2ebced96d7c86334b2710 | |
parent | d99706189e7c1661f2c92df567811644defee0f8 (diff) | |
download | linux-artik7-0542b99298d3145953e2ce1f0fa0e7a31d59214d.tar.gz linux-artik7-0542b99298d3145953e2ce1f0fa0e7a31d59214d.tar.bz2 linux-artik7-0542b99298d3145953e2ce1f0fa0e7a31d59214d.zip |
media: ov5640: change return value of the exceptional case
This patch changes the return value of the exceptional case.
The ov5640_set_mode() function has to return zero even if
its internal callback has been failed.
This patch would be a tentative fix, but has to be applied
for now.
Change-Id: I96095d8ce664c05e36c9437545150d67c371de92
Signed-off-by: Sooman Jeong <sm5.jeong@samsung.com>
-rw-r--r-- | drivers/media/i2c/ov5640.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/i2c/ov5640.c b/drivers/media/i2c/ov5640.c index 9a4a89672426..5a9594b216c6 100644 --- a/drivers/media/i2c/ov5640.c +++ b/drivers/media/i2c/ov5640.c @@ -1534,9 +1534,8 @@ static int ov5640_set_mode(struct ov5640_dev *sensor, */ ret = ov5640_set_mode_direct(sensor, mode); } - if (ret < 0) - return ret; + return 0; ret = ov5640_set_ae_target(sensor, sensor->ae_target); if (ret < 0) |