drm/panel: JDI LT070ME05000 simplify with dev_err_probe()
authorDavid Heidelberg <david@ixit.cz>
Sat, 12 Aug 2023 18:52:39 +0000 (20:52 +0200)
committerNeil Armstrong <neil.armstrong@linaro.org>
Mon, 14 Aug 2023 12:48:49 +0000 (14:48 +0200)
commitae6546835efaa7195aaaa10e5ff4e695cd82a816
treea638e9bfe2593fde6bd8afc72625bb27a8aff46f
parent07dd476f6116966cb2006e25fdcf48f0715115ff
drm/panel: JDI LT070ME05000 simplify with dev_err_probe()

Use the dev_err_probe() helper to simplify error handling during probe.
This also handle scenario, when EDEFER is returned and useless error is printed.

Fixes error:
panel-jdi-lt070me05000 4700000.dsi.0: cannot get enable-gpio -517

Signed-off-by: David Heidelberg <david@ixit.cz>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230812185239.378582-1-david@ixit.cz
drivers/gpu/drm/panel/panel-jdi-lt070me05000.c