drm/panel: nt39016: Make use of the helper function dev_err_probe()
authorCai Huoqing <caihuoqing@baidu.com>
Thu, 16 Sep 2021 10:46:19 +0000 (18:46 +0800)
committerSam Ravnborg <sam@ravnborg.org>
Thu, 14 Oct 2021 20:10:30 +0000 (22:10 +0200)
commitd41af761dbc137051ffe82fe4f23db54ebb1d523
tree176402a8be2043e597c16733f765213fd334ddbd
parentef41af47e40ed69e439cfedf74068bf797c62fd1
drm/panel: nt39016: Make use of the helper function dev_err_probe()

When possible use dev_err_probe help to properly deal with the
PROBE_DEFER error, the benefit is that DEFER issue will be logged
in the devices_deferred debugfs file.
And using dev_err_probe() can reduce code size, the error value
gets printed.

Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210916104620.11569-1-caihuoqing@baidu.com
drivers/gpu/drm/panel/panel-novatek-nt39016.c