From: Rusty Russell Date: Mon, 15 Jul 2013 01:53:32 +0000 (+0930) Subject: pinctrl: don't use PTR_RET(). X-Git-Tag: upstream/snapshot3+hdmi~4436^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5795c6ac7c77dc2363c41948cf828916c17cf78f;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git pinctrl: don't use PTR_RET(). We've already tested that it's an error. Cc: Sebastian Hesselbarth Signed-off-by: Rusty Russell --- diff --git a/drivers/pinctrl/mvebu/pinctrl-dove.c b/drivers/pinctrl/mvebu/pinctrl-dove.c index 048ae80..29f7e4f 100644 --- a/drivers/pinctrl/mvebu/pinctrl-dove.c +++ b/drivers/pinctrl/mvebu/pinctrl-dove.c @@ -785,7 +785,7 @@ static int dove_pinctrl_probe(struct platform_device *pdev) clk = devm_clk_get(&pdev->dev, NULL); if (IS_ERR(clk)) { dev_err(&pdev->dev, "Unable to get pdma clock"); - return PTR_RET(clk); + return PTR_ERR(clk); } clk_prepare_enable(clk);