diff options
author | Andy Shevchenko <andy.shevchenko@gmail.com> | 2020-10-07 11:46:35 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-10-28 13:31:32 +0100 |
commit | 974e454d6f96da0c0ab1b4115b92587dd9406f6a (patch) | |
tree | a52a9e472a60f2084ef25c681eeb93c62e4656d1 /drivers/tty/nozomi.c | |
parent | c808fab604ca62cff19ee6b261211483830807aa (diff) |
serial: max310x: Use devm_clk_get_optional() to get the input clock
Simplify the code which fetches the input clock by using
devm_clk_get_optional(). If no input clock is present
devm_clk_get_optional() will return NULL instead of an error
which matches the behavior of the old code.
Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20201007084635.594991-2-andy.shevchenko@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/nozomi.c')
0 files changed, 0 insertions, 0 deletions