msm_serial_hs_lite: Unconditionally control UART AHB clock
Control the UART AHB clock regardless of whether a GSBI
resource is present, as the AHB clock is needed to access
the UARTDM core registers in addition to the GSBI
registers.
Change-Id: Idca5ac07c133b67ac7c02ca3304a46794659e010
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
diff --git a/drivers/tty/serial/msm_serial_hs_lite.c b/drivers/tty/serial/msm_serial_hs_lite.c
index 987008d..f065eaa 100644
--- a/drivers/tty/serial/msm_serial_hs_lite.c
+++ b/drivers/tty/serial/msm_serial_hs_lite.c
@@ -1384,13 +1384,12 @@
if (!gsbi_resource)
gsbi_resource = platform_get_resource(pdev, IORESOURCE_MEM, 1);
msm_hsl_port->clk = clk_get(&pdev->dev, "core_clk");
- if (gsbi_resource) {
+ msm_hsl_port->pclk = clk_get(&pdev->dev, "iface_clk");
+
+ if (gsbi_resource)
msm_hsl_port->is_uartdm = 1;
- msm_hsl_port->pclk = clk_get(&pdev->dev, "iface_clk");
- } else {
+ else
msm_hsl_port->is_uartdm = 0;
- msm_hsl_port->pclk = NULL;
- }
if (unlikely(IS_ERR(msm_hsl_port->clk))) {
printk(KERN_ERR "%s: Error getting clk\n", __func__);