diff options
| author | Andy Shevchenko <[email protected]> | 2021-12-06 16:55:39 +0000 |
|---|---|---|
| committer | Marc Kleine-Budde <[email protected]> | 2021-12-08 09:19:13 +0000 |
| commit | 369cf4e6ac53f1595ef8602a8a984bce9b895ddb (patch) | |
| tree | 0efe135eae09a422b312f56c35cd4217c5647acc /drivers/net/wwan/iosm/iosm_ipc_debugfs.c | |
| parent | ARM: dts: sun8i: r40: add node for CAN controller (diff) | |
| download | kernel-369cf4e6ac53f1595ef8602a8a984bce9b895ddb.tar.gz kernel-369cf4e6ac53f1595ef8602a8a984bce9b895ddb.zip | |
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/[email protected]
Signed-off-by: Andy Shevchenko <[email protected]>
Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'drivers/net/wwan/iosm/iosm_ipc_debugfs.c')
0 files changed, 0 insertions, 0 deletions
