diff options
author | 2019-08-26 20:26:21 +0300 | |
---|---|---|
committer | 2019-09-03 10:23:57 +0200 | |
commit | b4cb76961c953cde1c60f52d2b6d434672da82f8 (patch) | |
tree | 3e331713110dec05b3676d667cd52490620fd84d /tools/perf/scripts/python/export-to-postgresql.py | |
parent | can: mcp251x: remove deprecated board file setup example (diff) | |
download | linux-dev-b4cb76961c953cde1c60f52d2b6d434672da82f8.tar.xz linux-dev-b4cb76961c953cde1c60f52d2b6d434672da82f8.zip |
can: mcp251x: Use devm_clk_get_optional() to get the input clock
Simplify the code which fetches the input clock by using
devm_clk_get_optional(). This comes with a small functional change: previously
all errors were ignored when platform data is present. Now all errors are
treated as errors. 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 <andriy.shevchenko@linux.intel.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions