@@ -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);