Thread (2 messages) 2 messages, 2 authors, 2014-02-19

[PATCH v6 05/18] ahci-platform: Add support for an optional regulator for sata-target power

From: tj@kernel.org (Tejun Heo)
Date: 2014-02-19 14:53:56
Also in: linux-devicetree, linux-ide

On Wed, Feb 19, 2014 at 01:01:47PM +0100, Hans de Goede wrote:
quoted hunk ↗ jump to hunk
@@ -268,6 +281,9 @@ pdata_exit:
 		pdata->exit(dev);
 disable_unprepare_clk:
 	ahci_disable_clks(hpriv);
+disable_regulator:
+	if (hpriv->target_pwr)
+		regulator_disable(hpriv->target_pwr);
The same thing with clks, I'd much prefer to see ahci_platform doing
devres wrapping so that its consumers wouldn't have to worry about
tearing stuff down.

Thanks.

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