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: NAtish Patra <atish.patra@wdc.com> Signed-off-by: NAnup Patel <anup.patel@wdc.com> Reviewed-by: NAlexander Graf <agraf@suse.de>
Showing
想要评论请 注册 或 登录