diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2023-07-19 12:16:10 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2023-09-27 09:39:56 +0200 |
commit | d66b45e1b082462c3e14528b83e18ee92362e456 (patch) | |
tree | a0d478d7f7dfe546a21c3ab2ad9c726f1f4b9347 /drivers/media | |
parent | MAINTAINERS: fix file path for Omnvision OV4689 (diff) | |
download | linux-d66b45e1b082462c3e14528b83e18ee92362e456.tar.xz linux-d66b45e1b082462c3e14528b83e18ee92362e456.zip |
media: ov13b10: Fix some error checking in probe
The "ret = " assignment was missing, so ov13b10_power_on() is not
checked for errors. Add the assignment.
Fixes: 6e28afd15228 ("media: ov13b10: add PM control support based on power resources")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Bingbu Cao <bingbu.cao@intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/i2c/ov13b10.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/ov13b10.c b/drivers/media/i2c/ov13b10.c index dbc642c5995b..8ebdb32dd3db 100644 --- a/drivers/media/i2c/ov13b10.c +++ b/drivers/media/i2c/ov13b10.c @@ -1501,7 +1501,7 @@ static int ov13b10_probe(struct i2c_client *client) full_power = acpi_dev_state_d0(&client->dev); if (full_power) { - ov13b10_power_on(&client->dev); + ret = ov13b10_power_on(&client->dev); if (ret) { dev_err(&client->dev, "failed to power on\n"); return ret; |