summaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2021-12-06 19:55:39 +0300
committerMarc Kleine-Budde <mkl@pengutronix.de>2021-12-08 12:19:13 +0300
commit369cf4e6ac53f1595ef8602a8a984bce9b895ddb (patch)
tree0efe135eae09a422b312f56c35cd4217c5647acc /scripts/patch-kernel
parent671f852c1bee9bd7138a5c4ad2c88d379cd0a6cb (diff)
downloadlinux-369cf4e6ac53f1595ef8602a8a984bce9b895ddb.tar.xz
can: hi311x: hi3110_can_probe(): use devm_clk_get_optional() to get the input clock
It's not clear what was the intention of redundant usage of IS_ERR() around the clock pointer since with the error check of devm_clk_get() followed by bailout it can't be invalid, Simplify the code which fetches the input clock by using devm_clk_get_optional(). It will allow to switch to device properties approach in the future. Link: https://lore.kernel.org/all/20211206165542.69887-1-andriy.shevchenko@linux.intel.com Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions