summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Aaberg <jonas.aberg@stericsson.com>2011-10-27 07:51:35 +0200
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-05-22 11:01:10 +0200
commitf0670e8298bb48256c8019015819c320ae8b2337 (patch)
treee1fb6d915e3f3826f296bb536a23e109cc5e8496
parent26d4956795ec8b93f715f930817e536df69eac73 (diff)
tty: serial: amba-pl011: Release clocks and regulators after probe
These will be enabled once in use. ST-Ericsson Linux next: - ST-Ericsson ID: 367599 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I1cfe9b00262d78a3326ca01af85268e918170735 Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35397 Reviewed-by: QABUILD
-rw-r--r--drivers/tty/serial/amba-pl011.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c
index 1d4d38918cd..98da861fc8a 100644
--- a/drivers/tty/serial/amba-pl011.c
+++ b/drivers/tty/serial/amba-pl011.c
@@ -2301,6 +2301,13 @@ static int pl011_probe(struct amba_device *dev, const struct amba_id *id)
kfree(uap);
}
out:
+ /*
+ * Disable the silicon block pclk and any voltage domain and just
+ * power it up and clock it when it's needed
+ */
+ amba_pclk_disable(dev);
+ amba_vcore_disable(dev);
+
return ret;
}