OSDN Git Service

drm/panel: k101-im2ba02: Make use of the helper function dev_err_probe()
authorCai Huoqing <caihuoqing@baidu.com>
Thu, 16 Sep 2021 10:42:47 +0000 (18:42 +0800)
committerSam Ravnborg <sam@ravnborg.org>
Thu, 14 Oct 2021 20:09:22 +0000 (22:09 +0200)
commita30fc787a1d3ba317e4736483ec8ae50043e6fa7
tree4148edc86745cae252f8201449aa1cf0d73a74f8
parent386e1c180f1f06acb64205c37f0fccc4f8885a73
drm/panel: k101-im2ba02: 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, and the error value
gets printed.

Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
Acked-by: Icenowy Zheng <icenowy@aosc.io>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210916104247.11270-1-caihuoqing@baidu.com
drivers/gpu/drm/panel/panel-feixin-k101-im2ba02.c