drm/tegra: sor: Make use of the helper function dev_err_probe()
authorCai Huoqing <caihuoqing@baidu.com>
Fri, 17 Sep 2021 02:07:41 +0000 (10:07 +0800)
committerThierry Reding <treding@nvidia.com>
Tue, 4 Apr 2023 16:04:57 +0000 (18:04 +0200)
commitd4281c016d84d56abd5fc19eb0e24ca7c5138e8c
tree9014b70c794beef3ede3376bbf58c3a88f24e116
parent3105e42c75e0f80a6933e29291a94f669b869dbd
drm/tegra: sor: 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.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/sor.c