Thread (1 message) 1 message, 1 author, 2013-05-24

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

From: Huang Shijie <hidden>
Date: 2013-05-24 02:42:53
Also in: linux-devicetree

? 2013?05?23? 18:19, Russell King - ARM Linux ??:
On Thu, May 23, 2013 at 04:16:13PM +0800, Huang Shijie wrote:
quoted
+	/* 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help