diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2019-08-26 20:26:21 +0300 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2019-09-03 10:23:57 +0200 |
commit | b4cb76961c953cde1c60f52d2b6d434672da82f8 (patch) | |
tree | 3e331713110dec05b3676d667cd52490620fd84d /lib/test_overflow.c | |
parent | f6cae800bfdb6711f0d45af98643a944998be6f2 (diff) | |
download | lwn-b4cb76961c953cde1c60f52d2b6d434672da82f8.tar.gz lwn-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 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions