msm: pil-gss: Migrate to devm_clk_get()

Clean up some error paths and simplify the code by moving to
devm_clk_get().

Change-Id: I47e8d6525c08aa947dd5735fbe1ce1489ffed803
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
diff --git a/arch/arm/mach-msm/pil-gss.c b/arch/arm/mach-msm/pil-gss.c
index f41a6e3..dc7baa1 100644
--- a/arch/arm/mach-msm/pil-gss.c
+++ b/arch/arm/mach-msm/pil-gss.c
@@ -340,7 +340,7 @@
 	if (!drv->qgic2_base)
 		return -ENOMEM;
 
-	drv->xo = clk_get(&pdev->dev, "xo");
+	drv->xo = devm_clk_get(&pdev->dev, "xo");
 	if (IS_ERR(drv->xo))
 		return PTR_ERR(drv->xo);
 
@@ -359,7 +359,6 @@
 
 	drv->pil = msm_pil_register(desc);
 	if (IS_ERR(drv->pil)) {
-		clk_put(drv->xo);
 		return PTR_ERR(drv->pil);
 	}
 	return 0;
@@ -369,7 +368,6 @@
 {
 	struct gss_data *drv = platform_get_drvdata(pdev);
 	msm_pil_unregister(drv->pil);
-	clk_put(drv->xo);
 	return 0;
 }