]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: i2c: ov7251: Set enable GPIO low in probe
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 17 Jan 2025 13:38:13 +0000 (15:38 +0200)
committerHans Verkuil <hverkuil@xs4all.nl>
Sat, 15 Feb 2025 14:22:51 +0000 (15:22 +0100)
Set the enable GPIO low when acquiring it.

Fixes: d30bb512da3d ("media: Add a driver for the ov7251 camera sensor")
Cc: stable@vger.kernel.org
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/i2c/ov7251.c

index 30f61e04ecaf51545b5251ba6ac8ef7470d8a245..f3e2d26bb8408ad005113009fe42f368afecccc9 100644 (file)
@@ -1696,7 +1696,7 @@ static int ov7251_probe(struct i2c_client *client)
                return PTR_ERR(ov7251->analog_regulator);
        }
 
-       ov7251->enable_gpio = devm_gpiod_get(dev, "enable", GPIOD_OUT_HIGH);
+       ov7251->enable_gpio = devm_gpiod_get(dev, "enable", GPIOD_OUT_LOW);
        if (IS_ERR(ov7251->enable_gpio)) {
                dev_err(dev, "cannot get enable gpio\n");
                return PTR_ERR(ov7251->enable_gpio);