summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorJason Liu <r64343@freescale.com>2011-12-19 20:39:18 +0800
committerJason Liu <r64343@freescale.com>2012-01-09 21:10:22 +0800
commitcb9befd1dc08d064c809bacd319e3121738ae1bc (patch)
tree46edd8ae4c8c3b7f48557dc65161208261688865 /arch
parente97e30a30150bc59d03013415dec96f7f739ff7e (diff)
fix the building warnings
Signed-off-by: Jason Liu <r64343@freescale.com>
Diffstat (limited to 'arch')
-rwxr-xr-xarch/arm/plat-mxc/cpufreq.c3
-rwxr-xr-xarch/arm/plat-mxc/utmixc.c4
2 files changed, 1 insertions, 6 deletions
diff --git a/arch/arm/plat-mxc/cpufreq.c b/arch/arm/plat-mxc/cpufreq.c
index 5efe83334703..906ecca7cf78 100755
--- a/arch/arm/plat-mxc/cpufreq.c
+++ b/arch/arm/plat-mxc/cpufreq.c
@@ -160,8 +160,7 @@ static int mxc_set_target(struct cpufreq_policy *policy,
return ret;
}
-static int mxc_cpufreq_suspend(struct cpufreq_policy *policy,
- pm_message_t state)
+static int mxc_cpufreq_suspend(struct cpufreq_policy *policy)
{
pre_suspend_rate = clk_get_rate(cpu_clk);
/* Set to max freq and voltage */
diff --git a/arch/arm/plat-mxc/utmixc.c b/arch/arm/plat-mxc/utmixc.c
index ab475eeac0d3..227943ba127c 100755
--- a/arch/arm/plat-mxc/utmixc.c
+++ b/arch/arm/plat-mxc/utmixc.c
@@ -27,8 +27,6 @@
#include <mach/arc_otg.h>
#include <asm/mach-types.h>
-static struct regulator *usbotg_regux;
-
static void usb_utmi_init(struct fsl_xcvr_ops *this)
{
#if defined(CONFIG_MXC_PMIC_MC13892_MODULE) || defined(CONFIG_MXC_PMIC_MC13892)
@@ -57,8 +55,6 @@ static void usb_utmi_uninit(struct fsl_xcvr_ops *this)
static void set_power(struct fsl_xcvr_ops *this,
struct fsl_usb2_platform_data *pdata, int on)
{
- struct device *dev = &pdata->pdev->dev;
-
pr_debug("real %s(on=%d) pdata=0x%p\n", __func__, on, pdata);
if (pdata && pdata->platform_driver_vbus)
pdata->platform_driver_vbus(on);