Searched hist:"0 b6291ad1940c403734312d0e453e8dac9148f69" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/net/ethernet/ |
H A D | korina.c | diff 0b6291ad1940c403734312d0e453e8dac9148f69 Mon Jul 31 04:05:35 CDT 2023 Yuanjun Gong <ruc_gongyuanjun@163.com> 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>
|