[PATCH V2 1/6] drivers: bus: add a new driver for WEIM
Huang Shijie
b32955 at freescale.com
Fri May 24 12:42:53 EST 2013
于 2013年05月23日 18:19, Russell King - ARM Linux 写道:
> 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...
>
i will add the error check in next version.
thanks
Huang Shijie
More information about the devicetree-discuss
mailing list