pinctrl: don't use PTR_RET().

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>
This commit is contained in:
Rusty Russell 2013-07-15 11:23:32 +09:30
parent 5d7e438629
commit 5795c6ac7c
1 changed files with 1 additions and 1 deletions

View 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);