media: i2c: ov5648: fix wrong pointer passed to IS_ERR() and PTR_ERR()
IS_ERR() and PTR_ERR() use wrong pointer, it should be
sensor->dovdd, fix it.
Fixes: e43ccb0a04
("media: i2c: Add support for the OV5648 image sensor")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
1d1d8669e5
commit
a6dd5265c2
1 changed files with 2 additions and 2 deletions
|
@ -2498,9 +2498,9 @@ static int ov5648_probe(struct i2c_client *client)
|
||||||
|
|
||||||
/* DOVDD: digital I/O */
|
/* DOVDD: digital I/O */
|
||||||
sensor->dovdd = devm_regulator_get(dev, "dovdd");
|
sensor->dovdd = devm_regulator_get(dev, "dovdd");
|
||||||
if (IS_ERR(sensor->dvdd)) {
|
if (IS_ERR(sensor->dovdd)) {
|
||||||
dev_err(dev, "cannot get DOVDD (digital I/O) regulator\n");
|
dev_err(dev, "cannot get DOVDD (digital I/O) regulator\n");
|
||||||
ret = PTR_ERR(sensor->dvdd);
|
ret = PTR_ERR(sensor->dovdd);
|
||||||
goto error_endpoint;
|
goto error_endpoint;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue