drm/panel: xpp055c272: Make use of the helper function dev_err_probe()
authorCai Huoqing <caihuoqing@baidu.com>
Thu, 16 Sep 2021 10:46:49 +0000 (18:46 +0800)
committerSam Ravnborg <sam@ravnborg.org>
Thu, 14 Oct 2021 20:12:15 +0000 (22:12 +0200)
commite82ef424eec8e412cc1ca9170c49633316b29f07
tree83e550f5ef80aca29bda464ebebb08708d99fe60
parenta8daf03fa2d49c8892c3de924742b1a47b62f3e6
drm/panel: xpp055c272: 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/20210916104650.11781-1-caihuoqing@baidu.com
drivers/gpu/drm/panel/panel-xinpeng-xpp055c272.c