diff mbox series

[4/6] drm/bridge: ti-sn65dsi83: make use of dev_err_probe

Message ID 20220530150548.1236307-5-m.felsch@pengutronix.de (mailing list archive)
State New, archived
Headers show
Series TI SN65DSI83 Features | expand

Commit Message

Marco Felsch May 30, 2022, 3:05 p.m. UTC
Use the new helper to improve the debug capabilities.

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
---
 drivers/gpu/drm/bridge/ti-sn65dsi83.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi83.c b/drivers/gpu/drm/bridge/ti-sn65dsi83.c
index baf94b2b78a1..3c1dc16985b5 100644
--- a/drivers/gpu/drm/bridge/ti-sn65dsi83.c
+++ b/drivers/gpu/drm/bridge/ti-sn65dsi83.c
@@ -757,7 +757,8 @@  static int sn65dsi83_probe(struct i2c_client *client,
 	ctx->enable_gpio = devm_gpiod_get_optional(ctx->dev, "enable",
 						   GPIOD_OUT_LOW);
 	if (IS_ERR(ctx->enable_gpio))
-		return PTR_ERR(ctx->enable_gpio);
+		return dev_err_probe(ctx->dev, PTR_ERR(ctx->enable_gpio),
+				     "Failed to get GPIO\n");
 
 	usleep_range(10000, 11000);