Skip to content

Commit fb2ac84

Browse files
tititiou36chanwoochoi
authored andcommitted
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 <[email protected]> Signed-off-by: Chanwoo Choi <[email protected]>
1 parent e09bd57 commit fb2ac84

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

drivers/devfreq/event/rockchip-dfi.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,9 @@ static int rockchip_dfi_probe(struct platform_device *pdev)
189189
return PTR_ERR(data->regs);
190190

191191
data->clk = devm_clk_get(dev, "pclk_ddr_mon");
192-
if (IS_ERR(data->clk)) {
193-
dev_err(dev, "Cannot get the clk dmc_clk\n");
194-
return PTR_ERR(data->clk);
195-
}
192+
if (IS_ERR(data->clk))
193+
return dev_err_probe(dev, PTR_ERR(data->clk),
194+
"Cannot get the clk pclk_ddr_mon\n");
196195

197196
/* try to find the optional reference to the pmu syscon */
198197
node = of_parse_phandle(np, "rockchip,pmu", 0);

0 commit comments

Comments
 (0)