OSDN Git Service

drm/panel: ili9881c: Make use of the helper function dev_err_probe()
authorCai Huoqing <caihuoqing@baidu.com>
Thu, 16 Sep 2021 10:42:39 +0000 (18:42 +0800)
committerSam Ravnborg <sam@ravnborg.org>
Thu, 14 Oct 2021 20:09:10 +0000 (22:09 +0200)
commit386e1c180f1f06acb64205c37f0fccc4f8885a73
tree36ac5f74a451fca3fda54ef11c6792ed7d8582d4
parent5ddc1e27e03298c433b0c889c2a431432abc2cc0
drm/panel: ili9881c: 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>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210916104240.11217-1-caihuoqing@baidu.com
drivers/gpu/drm/panel/panel-ilitek-ili9881c.c