diff options
| author | 2023-07-31 17:05:35 +0800 | |
|---|---|---|
| committer | 2023-08-01 14:58:34 -0700 | |
| commit | 0b6291ad1940c403734312d0e453e8dac9148f69 (patch) | |
| tree | db035beb7af38ee464d2e16579b710839cf99e4c /include/linux/bcma/ssh:/git@git.zx2c4.com/git: | |
| parent | USB: zaurus: Add ID for A-300/B-500/C-700 (diff) | |
net: korina: handle clk prepare error in korina_probe()
in korina_probe(), the return value of clk_prepare_enable()
should be checked since it might fail. we can use
devm_clk_get_optional_enabled() instead of devm_clk_get_optional()
and clk_prepare_enable() to automatically handle the error.
Fixes: e4cd854ec487 ("net: korina: Get mdio input clock via common clock framework")
Signed-off-by: Yuanjun Gong <ruc_gongyuanjun@163.com>
Link: https://lore.kernel.org/r/20230731090535.21416-1-ruc_gongyuanjun@163.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/bcma/ssh:/git@git.zx2c4.com/git:')
0 files changed, 0 insertions, 0 deletions
