media: i2c: ov5648: fix wrong pointer passed to IS_ERR() and PTR_ERR()
[linux-2.6-microblaze.git] / drivers / media / i2c / ov5648.c
index 930ff68..dfcd33e 100644 (file)
@@ -2498,9 +2498,9 @@ static int ov5648_probe(struct i2c_client *client)
 
        /* DOVDD: digital I/O */
        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");
-               ret = PTR_ERR(sensor->dvdd);
+               ret = PTR_ERR(sensor->dovdd);
                goto error_endpoint;
        }