OSDN Git Service

drm/panel: sofef00: Make use of the helper function dev_err_probe()
authorCai Huoqing <caihuoqing@baidu.com>
Thu, 16 Sep 2021 10:46:34 +0000 (18:46 +0800)
committerSam Ravnborg <sam@ravnborg.org>
Thu, 14 Oct 2021 20:11:07 +0000 (22:11 +0200)
commitd60b93917a66414aaee5704dd07c845aa6cf9645
tree9715173c7d9f9ae9aab9bf44fff357b4577f6f28
parent94f9b9525c0a2e8aac741f8e0a2d71c4e2771ba9
drm/panel: sofef00: 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/20210916104635.11675-1-caihuoqing@baidu.com
drivers/gpu/drm/panel/panel-samsung-sofef00.c