]> Pileus Git - ~andy/linux/commitdiff
pinctrl: don't use PTR_RET().
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 15 Jul 2013 01:53:32 +0000 (11:23 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 15 Jul 2013 01:55:03 +0000 (11:25 +0930)
We've already tested that it's an error.

Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/pinctrl/mvebu/pinctrl-dove.c

index 048ae80adabde3ef2f01dfd3f2cf7cf83f3235d5..29f7e4fc7ca5a8e8e34281484f2caafbe476b74f 100644 (file)
@@ -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);