Thread (46 messages) flat view 46 messages, 5 authors, 2014-02-24

[PATCH 14/17] i2c: nomadik: Fixup deployment of runtime PM

From: festevam@gmail.com (Fabio Estevam)
Date: 2014-02-05 14:45:57
Also in: linux-i2c, linux-mmc, linux-spi, lkml

On Tue, Feb 4, 2014 at 1:58 PM, Ulf Hansson [off-list ref] wrote:
+static int nmk_i2c_runtime_resume(struct device *dev)
+{
+       struct amba_device *adev = to_amba_device(dev);,
+       struct nmk_i2c_dev *nmk_i2c = amba_get_drvdata(adev);
+
+       clk_prepare_enable(nmk_i2c->clk);
Previously the code was checking the return value from
clk_prepare_enable(). You should keep the check here.

Regards,

Fabio Estevam
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help