[PATCH V2 1/6] drivers: bus: add a new driver for WEIM

Russell King - ARM Linux linux at arm.linux.org.uk
Thu May 23 06:19:21 EDT 2013


On Thu, May 23, 2013 at 04:16:13PM +0800, Huang Shijie wrote:
> +	/* get the clock */
> +	weim->clk = devm_clk_get(&pdev->dev, NULL);
> +	if (IS_ERR(weim->clk))
> +		goto weim_err;
> +
> +	clk_prepare_enable(weim->clk);

I notice people are getting lazy about this.  clk_prepare_enable() can
return an error...



More information about the linux-arm-kernel mailing list