diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2022-05-21 10:34:25 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-05-22 21:47:13 +0100 |
commit | 43252ed15f46658cec64edecfe610e40f6a12d85 (patch) | |
tree | 9a52d0c6e23719c473b24d9e74056c14e0a193e7 /lib/seq_buf.c | |
parent | c12b95885ab2d318fdad9b395acd53df42fd7b0e (diff) | |
download | linux-43252ed15f46658cec64edecfe610e40f6a12d85.tar.gz linux-43252ed15f46658cec64edecfe610e40f6a12d85.tar.bz2 linux-43252ed15f46658cec64edecfe610e40f6a12d85.zip |
net: fec: Do proper error checking for optional clks
An error code returned by devm_clk_get() might have other meanings than
"This clock doesn't exist". So use devm_clk_get_optional() and handle
all remaining errors as fatal.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/seq_buf.c')
0 files changed, 0 insertions, 0 deletions