On Fri, Jan 17, 2014 at 06:11:38PM +0000, Ben Dooks wrote:
> The current i2c-rcar driver does clk_get() without a corresponding
> clk_put(). Add the clk to the driver private data and then get it
> with the devm functions so that it is released when the driver is
> unbound.
> 

>  
> +     priv->clk = devm_clk_get(dev, NULL);
> +     if (IS_ERR(priv->clk)) {
> +             dev_err(dev, "cannot get clock\n");
> +             return -ENOENT;
> +     }

Return the error here?

Attachment: signature.asc
Description: Digital signature

Reply via email to