commit | 574fa69a2818a3eee6c3fa6557fbb2dcbd7816cc | [log] [tgz] |
---|---|---|
author | Atish Patra <atish.patra@wdc.com> | Mon Feb 25 08:15:08 2019 +0000 |
committer | Andes <uboot@andestech.com> | Wed Feb 27 09:12:33 2019 +0800 |
tree | 5a0c2f82bc53413bf9a5130e2839dd4089ec4c85 | |
parent | bc922d4131f22705c84fed7e61c4aded3c23863e [diff] |
drivers: serial_sifive: Skip baudrate config if no input clock It is possible that input clock is not available because clk device was not available and 'clock-frequency' DT property is also not available. In this case, instead of failing we should just skip baudrate config by returning zero. Signed-off-by: Atish Patra <atish.patra@wdc.com> Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Alexander Graf <agraf@suse.de>