remoteproc: don't use PTR_RET().
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 15 Jul 2013 01:54:08 +0000 (11:24 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 15 Jul 2013 01:55:04 +0000 (11:25 +0930)
We've already tested that it's an error.

Cc: Robert Tivy <rtivy@ti.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Acked-by: Ohad Ben-Cohen <ohad@wizery.com>
drivers/remoteproc/da8xx_remoteproc.c

index 9b2e60afa1a6d2a87a4af04bd8c55fc41398ce52..129f7b9978663b159e16c30e30e3ec590656a3f0 100644 (file)
@@ -165,7 +165,7 @@ static int reset_assert(struct device *dev)
        dsp_clk = clk_get(dev, NULL);
        if (IS_ERR(dsp_clk)) {
                dev_err(dev, "clk_get error: %ld\n", PTR_ERR(dsp_clk));
-               return PTR_RET(dsp_clk);
+               return PTR_ERR(dsp_clk);
        }
 
        davinci_clk_reset_assert(dsp_clk);