summaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2019-08-26 20:26:21 +0300
committerMarc Kleine-Budde <mkl@pengutronix.de>2019-09-03 10:23:57 +0200
commitb4cb76961c953cde1c60f52d2b6d434672da82f8 (patch)
tree3e331713110dec05b3676d667cd52490620fd84d /lib/test_overflow.c
parentf6cae800bfdb6711f0d45af98643a944998be6f2 (diff)
downloadlwn-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