diff options
author | Krzysztof Kozlowski <[email protected]> | 2024-08-23 14:51:09 +0200 |
---|---|---|
committer | Ulf Hansson <[email protected]> | 2024-09-13 12:21:04 +0200 |
commit | 584dc41b3d5750a5a57be46c96708eee1092eb30 (patch) | |
tree | 2aee0add1bceee81216b68df90ed1a7232547795 | |
parent | 13bd778c900537f3fff7cfb671ff2eb0e92feee6 (diff) |
pmdomain: qcom: cpr: Simplify with dev_err_probe()
Use dev_err_probe() to make defer code handling simpler.
Signed-off-by: Krzysztof Kozlowski <[email protected]>
Reviewed-by: Konrad Dybcio <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Ulf Hansson <[email protected]>
-rw-r--r-- | drivers/pmdomain/qcom/cpr.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/pmdomain/qcom/cpr.c b/drivers/pmdomain/qcom/cpr.c index 37b318bf505a..87d1db1a0019 100644 --- a/drivers/pmdomain/qcom/cpr.c +++ b/drivers/pmdomain/qcom/cpr.c @@ -1464,9 +1464,8 @@ static int cpr_pd_attach_dev(struct generic_pm_domain *domain, */ drv->cpu_clk = devm_clk_get(dev, NULL); if (IS_ERR(drv->cpu_clk)) { - ret = PTR_ERR(drv->cpu_clk); - if (ret != -EPROBE_DEFER) - dev_err(drv->dev, "could not get cpu clk: %d\n", ret); + ret = dev_err_probe(drv->dev, PTR_ERR(drv->cpu_clk), + "could not get cpu clk\n"); goto unlock; } drv->attached_cpu_dev = dev; |