diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2020-12-11 13:05:50 +0300 |
---|---|---|
committer | Neil Armstrong <narmstrong@baylibre.com> | 2020-12-15 11:23:38 +0300 |
commit | 91def3cce986238db7c06af083b8e9e30372a895 (patch) | |
tree | abd60df72fb569750a7bf63ec991dd87768dd634 /drivers/gpu/drm/panel | |
parent | 8c392cd5f1c638f953ebf2c6f4baca9df9e699f4 (diff) | |
download | linux-91def3cce986238db7c06af083b8e9e30372a895.tar.xz |
drm/panel: khadas: Fix error code in khadas_ts050_panel_add()
There is a copy and paste bug so it didn't return the correct error
code.
Fixes: b215212117f7 ("drm: panel: add Khadas TS050 panel driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://patchwork.freedesktop.org/patch/msgid/X9NEfmgGilaXJs2R@mwanda
Diffstat (limited to 'drivers/gpu/drm/panel')
-rw-r--r-- | drivers/gpu/drm/panel/panel-khadas-ts050.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/panel/panel-khadas-ts050.c b/drivers/gpu/drm/panel/panel-khadas-ts050.c index 87aa2cc8ec2a..8f6ac1a40c31 100644 --- a/drivers/gpu/drm/panel/panel-khadas-ts050.c +++ b/drivers/gpu/drm/panel/panel-khadas-ts050.c @@ -786,7 +786,7 @@ static int khadas_ts050_panel_add(struct khadas_ts050_panel *khadas_ts050) khadas_ts050->enable_gpio = devm_gpiod_get(dev, "enable", GPIOD_OUT_HIGH); if (IS_ERR(khadas_ts050->enable_gpio)) - return dev_err_probe(dev, PTR_ERR(khadas_ts050->reset_gpio), + return dev_err_probe(dev, PTR_ERR(khadas_ts050->enable_gpio), "failed to get enable gpio"); drm_panel_init(&khadas_ts050->base, &khadas_ts050->link->dev, |