diff options
| author | Yang Yingliang <[email protected]> | 2022-09-26 14:17:29 +0000 |
|---|---|---|
| committer | Xu Yilun <[email protected]> | 2022-10-25 06:25:02 +0000 |
| commit | 7872d4236f74ad6df4d2c9189b66f95157e24a9b (patch) | |
| tree | 487901e3dce4d5c02c400c4590ea027dcd708e85 /drivers/fpga/lattice-sysconfig.c | |
| parent | Linux 6.1-rc1 (diff) | |
| download | kernel-7872d4236f74ad6df4d2c9189b66f95157e24a9b.tar.gz kernel-7872d4236f74ad6df4d2c9189b66f95157e24a9b.zip | |
fpga: zynq: Switch to use dev_err_probe() helper
In the probe path, dev_err() can be replaced with dev_err_probe()
which will check if error code is -EPROBE_DEFER and prints the
error name. It also sets the defer probe reason which can be
checked later through debugfs. It's more simple in error path.
Signed-off-by: Yang Yingliang <[email protected]>
Acked-by: Xu Yilun <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Xu Yilun <[email protected]>
Diffstat (limited to 'drivers/fpga/lattice-sysconfig.c')
0 files changed, 0 insertions, 0 deletions
