Commit 585bc2ac authored by Sergei Shtylyov's avatar Sergei Shtylyov Committed by Marc Kleine-Budde

can: rcar_can: unify error messages

All the error messages in the driver but  the ones from devm_clk_get() failures
use similar format.  Make those  two messages consitent with others.
Signed-off-by: default avatarSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent ae185f19
...@@ -785,7 +785,8 @@ static int rcar_can_probe(struct platform_device *pdev) ...@@ -785,7 +785,8 @@ static int rcar_can_probe(struct platform_device *pdev)
priv->clk = devm_clk_get(&pdev->dev, "clkp1"); priv->clk = devm_clk_get(&pdev->dev, "clkp1");
if (IS_ERR(priv->clk)) { if (IS_ERR(priv->clk)) {
err = PTR_ERR(priv->clk); err = PTR_ERR(priv->clk);
dev_err(&pdev->dev, "cannot get peripheral clock: %d\n", err); dev_err(&pdev->dev, "cannot get peripheral clock, error %d\n",
err);
goto fail_clk; goto fail_clk;
} }
...@@ -797,7 +798,7 @@ static int rcar_can_probe(struct platform_device *pdev) ...@@ -797,7 +798,7 @@ static int rcar_can_probe(struct platform_device *pdev)
priv->can_clk = devm_clk_get(&pdev->dev, clock_names[clock_select]); priv->can_clk = devm_clk_get(&pdev->dev, clock_names[clock_select]);
if (IS_ERR(priv->can_clk)) { if (IS_ERR(priv->can_clk)) {
err = PTR_ERR(priv->can_clk); err = PTR_ERR(priv->can_clk);
dev_err(&pdev->dev, "cannot get CAN clock: %d\n", err); dev_err(&pdev->dev, "cannot get CAN clock, error %d\n", err);
goto fail_clk; goto fail_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