platform: msm_shared: Perform error check for clk_enable

Perform error check for clk_enable and in case of failure
output the clock name and failure reason.

CRs-Fixed: 611384
Change-Id: I0c0d9850bd019aa0da77304ae623cc0e22134984
diff --git a/platform/msm_shared/clock_lib2.c b/platform/msm_shared/clock_lib2.c
index 218b585..6f778b1 100644
--- a/platform/msm_shared/clock_lib2.c
+++ b/platform/msm_shared/clock_lib2.c
@@ -129,7 +129,14 @@
 		return rc;
 
 	/* First enable the source clock for this freq. */
-	clk_enable(nf->src_clk);
+	rc = clk_enable(nf->src_clk);
+
+	if(rc)
+	{
+		dprintf(CRITICAL, "clock_lib2_rcg_set_rate: failed to enable clk %s ret %d\n",
+									nf->src_clk->dbg_name, rc);
+		ASSERT(0);
+	}
 
 	/* Perform clock-specific frequency switch operations. */
 	ASSERT(rclk->set_rate);