diff options
| author | Luca Ceresoli <[email protected]> | 2021-02-04 12:13:13 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2021-03-24 07:26:03 +0000 |
| commit | ce453ee6df018a8522373faae56e6032045a9606 (patch) | |
| tree | af7b2c63ebbd976bce71cf332cbe16b5f94b125e /drivers/fpga/xilinx-pr-decoupler.c | |
| parent | Merge v5.12-rc3 into char-misc-next (diff) | |
| download | kernel-ce453ee6df018a8522373faae56e6032045a9606.tar.gz kernel-ce453ee6df018a8522373faae56e6032045a9606.zip | |
fpga: fpga-mgr: xilinx-spi: fix error messages on -EPROBE_DEFER
The current code produces an error message on devm_gpiod_get() errors even
when the error is -EPROBE_DEFER, which should be silent.
This has been observed producing a significant amount of messages like:
xlnx-slave-spi spi1.1: Failed to get PROGRAM_B gpio: -517
Fix and simplify code by using the dev_err_probe() helper function.
Signed-off-by: Luca Ceresoli <[email protected]>
Fixes: dd2784c01d93 ("fpga manager: xilinx-spi: check INIT_B pin during write_init")
Fixes: 061c97d13f1a ("fpga manager: Add Xilinx slave serial SPI driver")
Signed-off-by: Moritz Fischer <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/fpga/xilinx-pr-decoupler.c')
0 files changed, 0 insertions, 0 deletions
