Skip to content

Commit 733daae

Browse files
mwallerobertfoss
authored andcommitted
drm/bridge: tc358775: make standby GPIO optional
The stby pin is optional. It is only needed for power-up and down sequencing. It is not needed, if the power rails cannot by dynamically enabled. Because the GPIO is now optional, remove the error message. Signed-off-by: Michael Walle <mwalle@kernel.org> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Tony Lindgren <tony@atomide.com> Reviewed-by: Robert Foss <rfoss@kernel.org> Signed-off-by: Robert Foss <rfoss@kernel.org> Link: https://patchwork.freedesktop.org/patch/msgid/20240225062008.33191-6-tony@atomide.com
1 parent 30ea09a commit 733daae

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

drivers/gpu/drm/bridge/tc358775.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -667,12 +667,9 @@ static int tc_probe(struct i2c_client *client)
667667
return ret;
668668
}
669669

670-
tc->stby_gpio = devm_gpiod_get(dev, "stby", GPIOD_OUT_HIGH);
671-
if (IS_ERR(tc->stby_gpio)) {
672-
ret = PTR_ERR(tc->stby_gpio);
673-
dev_err(dev, "cannot get stby-gpio %d\n", ret);
674-
return ret;
675-
}
670+
tc->stby_gpio = devm_gpiod_get_optional(dev, "stby", GPIOD_OUT_HIGH);
671+
if (IS_ERR(tc->stby_gpio))
672+
return PTR_ERR(tc->stby_gpio);
676673

677674
tc->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH);
678675
if (IS_ERR(tc->reset_gpio)) {

0 commit comments

Comments
 (0)