OSDN Git Service

drm/panel: ls037v7dw01: Make use of the helper function dev_err_probe()
authorCai Huoqing <caihuoqing@baidu.com>
Thu, 16 Sep 2021 10:46:11 +0000 (18:46 +0800)
committerSam Ravnborg <sam@ravnborg.org>
Thu, 14 Oct 2021 20:10:03 +0000 (22:10 +0200)
commitef41af47e40ed69e439cfedf74068bf797c62fd1
tree9623dc65f4e5a0cf5c567d777af0442b2bfc7ab9
parenta30fc787a1d3ba317e4736483ec8ae50043e6fa7
drm/panel: ls037v7dw01: 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/20210916104612.11516-1-caihuoqing@baidu.com
drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c