diff mbox

OMAP1: PM: Fix OMAP1610 build

Message ID 1279106545-3018-1-git-send-email-manjugk@ti.com (mailing list archive)
State New, archived
Headers show

Commit Message

manjugk manjugk July 14, 2010, 11:22 a.m. UTC
None
diff mbox

Patch

diff --git a/arch/arm/mach-omap1/pm_bus.c b/arch/arm/mach-omap1/pm_bus.c
index 29d651a..6c5ab40 100644
--- a/arch/arm/mach-omap1/pm_bus.c
+++ b/arch/arm/mach-omap1/pm_bus.c
@@ -15,6 +15,8 @@ 
 #include <linux/pm_runtime.h>
 #include <linux/platform_device.h>
 #include <linux/mutex.h>
+#include <linux/clk.h>
+#include <linux/err.h>
 
 #include <plat/omap_device.h>
 #include <plat/omap-pm.h>
@@ -23,6 +25,7 @@ 
 int platform_pm_runtime_suspend(struct device *dev)
 {
 	struct clk *iclk, *fclk;
+	int ret = 0;
 
 	dev_dbg(dev, "%s\n", __func__);
 
@@ -46,7 +49,7 @@  int platform_pm_runtime_suspend(struct device *dev)
 
 int platform_pm_runtime_resume(struct device *dev)
 {
-	int r, ret = 0;
+	int ret = 0;
 	struct clk *iclk, *fclk;
 
 	iclk = clk_get(dev, "ick");
@@ -69,6 +72,7 @@  int platform_pm_runtime_resume(struct device *dev)
 
 int platform_pm_runtime_idle(struct device *dev)
 {
+	int ret = 0;
 	ret = pm_runtime_suspend(dev);
 	dev_dbg(dev, "%s [%d]\n", __func__, ret);