Commit bf7b0bf6 authored by Heiner Kallweit's avatar Heiner Kallweit Committed by Jakub Kicinski

r8169: use dev_err_probe in rtl_get_ether_clk

Tiny improvement, let dev_err_probe() deal with EPROBE_DEFER.
Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/b0c4ebcf-2047-e933-b890-8a20e4bdb19f@gmail.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 94d8a98e
...@@ -5165,8 +5165,8 @@ static int rtl_get_ether_clk(struct rtl8169_private *tp) ...@@ -5165,8 +5165,8 @@ static int rtl_get_ether_clk(struct rtl8169_private *tp)
if (rc == -ENOENT) if (rc == -ENOENT)
/* clk-core allows NULL (for suspend / resume) */ /* clk-core allows NULL (for suspend / resume) */
rc = 0; rc = 0;
else if (rc != -EPROBE_DEFER) else
dev_err(d, "failed to get clk: %d\n", rc); dev_err_probe(d, rc, "failed to get clk\n");
} else { } else {
tp->clk = clk; tp->clk = clk;
rc = clk_prepare_enable(clk); rc = clk_prepare_enable(clk);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment