diff options
author | Rajan Vaja | 2019-03-01 10:37:08 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2019-03-01 18:07:34 +0100 |
commit | f694936c3b5a4c140ded5b673555d95aedc866b9 (patch) | |
tree | 45fb37a475a644d5679b04ad440657058d1995d4 /arch/mips/ath79/mach-db120.c | |
parent | serial: sprd: Modify the baud rate calculation formula (diff) | |
download | kernel-qcow2-linux-f694936c3b5a4c140ded5b673555d95aedc866b9.tar.gz kernel-qcow2-linux-f694936c3b5a4c140ded5b673555d95aedc866b9.tar.xz kernel-qcow2-linux-f694936c3b5a4c140ded5b673555d95aedc866b9.zip |
tty: xilinx_uartps: Correct return value in probe
Existing driver checks for alternate clock if devm_clk_get() fails
and returns error code for last clock failure. If xilinx_uartps is
called before clock driver, devm_clk_get() returns -EPROBE_DEFER.
In this case, probe should not check for alternate clock as main
clock is already present in DTS and return -EPROBE_DEFER only.
This patch fixes it by not checking for alternate clock when main
clock get returns -EPROBE_DEFER.
Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/mips/ath79/mach-db120.c')
0 files changed, 0 insertions, 0 deletions