diff options
| author | Yuanjun Gong <ruc_gongyuanjun@163.com> | 2023-07-31 17:05:35 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-08-11 12:08:16 +0200 |
| commit | 8afe27770dea9c4af991253c48db4a4dcc35f1a4 (patch) | |
| tree | f3db6da202c019347f3043e3a9687213df6d021e /drivers/char/lp.c | |
| parent | 58660666b46488152ec03dbde8a6e3e12b785fc9 (diff) | |
| download | linux-8afe27770dea9c4af991253c48db4a4dcc35f1a4.tar.gz linux-8afe27770dea9c4af991253c48db4a4dcc35f1a4.tar.bz2 linux-8afe27770dea9c4af991253c48db4a4dcc35f1a4.zip | |
net: korina: handle clk prepare error in korina_probe()
[ Upstream commit 0b6291ad1940c403734312d0e453e8dac9148f69 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/char/lp.c')
0 files changed, 0 insertions, 0 deletions
