diff options
author | Andy Shevchenko <[email protected]> | 2020-10-07 11:46:35 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2020-10-28 13:31:32 +0100 |
commit | 974e454d6f96da0c0ab1b4115b92587dd9406f6a (patch) | |
tree | a52a9e472a60f2084ef25c681eeb93c62e4656d1 /tools/perf/scripts/python | |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions