diff --git a/drivers/media/i2c/ov5647.c b/drivers/media/i2c/ov5647.c index c6b358cca603..4c6f44551afe 100644 --- a/drivers/media/i2c/ov5647.c +++ b/drivers/media/i2c/ov5647.c @@ -1586,7 +1586,7 @@ static int ov5647_probe(struct i2c_client *client, } /* Request the power down GPIO asserted. */ - sensor->pwdn = devm_gpiod_get(dev, "pwdn", GPIOD_OUT_HIGH); + sensor->pwdn = devm_gpiod_get_optional(dev, "pwdn", GPIOD_OUT_HIGH); if (IS_ERR(sensor->pwdn)) { dev_err(dev, "Failed to get 'pwdn' gpio\n"); return -EINVAL;