diff options
author | Yuanjun Gong <[email protected]> | 2023-07-31 17:05:35 +0800 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-08-01 14:58:34 -0700 |
commit | 0b6291ad1940c403734312d0e453e8dac9148f69 (patch) | |
tree | db035beb7af38ee464d2e16579b710839cf99e4c /drivers/fpga/fpga-mgr.c | |
parent | b99225b4fe297d07400f9e2332ecd7347b224f8d (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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions