mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 10:31:46 +09:00
media: i2c: ov7251: Set enable GPIO low in probe
commit a1963698d59cec83df640ded343af08b76c8e9c5 upstream.
Set the enable GPIO low when acquiring it.
Fixes: d30bb512da ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
a32e7319e6
commit
2dd2d13c0b
@@ -1675,7 +1675,7 @@ static int ov7251_probe(struct i2c_client *client)
|
|||||||
return PTR_ERR(ov7251->analog_regulator);
|
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)) {
|
if (IS_ERR(ov7251->enable_gpio)) {
|
||||||
dev_err(dev, "cannot get enable gpio\n");
|
dev_err(dev, "cannot get enable gpio\n");
|
||||||
return PTR_ERR(ov7251->enable_gpio);
|
return PTR_ERR(ov7251->enable_gpio);
|
||||||
|
|||||||
Reference in New Issue
Block a user