video: fbdev: pxa3xx-gcu: Make use of the helper function dev_err_probe()
authorCai Huoqing <caihuoqing@baidu.com>
Fri, 17 Sep 2021 04:22:09 +0000 (12:22 +0800)
committerHelge Deller <deller@gmx.de>
Sat, 29 Jan 2022 22:22:36 +0000 (23:22 +0100)
commit626e021dab759df83ff575998e679276717f0a11
tree736d8ebad8f6a7540f81efb9dc823510647922e6
parent24e9c50d7adf438cdfa7367636ee87b88e93dc3c
video: fbdev: pxa3xx-gcu: 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.
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: Helge Deller <deller@gmx.de>
drivers/video/fbdev/pxa3xx-gcu.c