diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2022-09-10 16:15:56 +0200 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2022-09-26 03:59:43 +0900 |
commit | fb2ac84f8acccdec644d26dfc8ba6554f30cd6c0 (patch) | |
tree | 39a4c042953014a6b1b01944bbe07d5dd8bcd939 /drivers/devfreq | |
parent | e09bd5757b5227d6804b30c58d4587f7f87d1afa (diff) | |
download | linux-fb2ac84f8acccdec644d26dfc8ba6554f30cd6c0.tar.gz linux-fb2ac84f8acccdec644d26dfc8ba6554f30cd6c0.tar.bz2 linux-fb2ac84f8acccdec644d26dfc8ba6554f30cd6c0.zip |
PM / devfreq: rockchip-dfi: Fix an error message
There is a typo in the message. The clock name should be 'pclk_ddr_mon'.
Fix it.
While at it, switch to dev_err_probe() which is less verbose, filters
-EPROBE_DEFER, and log the error code in a human readable way.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'drivers/devfreq')
-rw-r--r-- | drivers/devfreq/event/rockchip-dfi.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/devfreq/event/rockchip-dfi.c b/drivers/devfreq/event/rockchip-dfi.c index 9a88faaf8b27..39ac069cabc7 100644 --- a/drivers/devfreq/event/rockchip-dfi.c +++ b/drivers/devfreq/event/rockchip-dfi.c @@ -189,10 +189,9 @@ static int rockchip_dfi_probe(struct platform_device *pdev) return PTR_ERR(data->regs); data->clk = devm_clk_get(dev, "pclk_ddr_mon"); - if (IS_ERR(data->clk)) { - dev_err(dev, "Cannot get the clk dmc_clk\n"); - return PTR_ERR(data->clk); - } + if (IS_ERR(data->clk)) + return dev_err_probe(dev, PTR_ERR(data->clk), + "Cannot get the clk pclk_ddr_mon\n"); /* try to find the optional reference to the pmu syscon */ node = of_parse_phandle(np, "rockchip,pmu", 0); |