From: Jason Liu Date: Mon, 19 Dec 2011 12:39:18 +0000 (+0800) Subject: fix the building warnings X-Git-Tag: v3.0.35-fsl~1781 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a9a599f3d860777e479337bfd0cd4478810021e6;p=karo-tx-linux.git fix the building warnings Signed-off-by: Jason Liu --- 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 #include -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); diff --git a/drivers/media/video/mxc/output/mxc_vout.c b/drivers/media/video/mxc/output/mxc_vout.c index 57e684f99308..b93e14805ece 100644 --- a/drivers/media/video/mxc/output/mxc_vout.c +++ b/drivers/media/video/mxc/output/mxc_vout.c @@ -678,7 +678,7 @@ static int mxc_vout_release(struct file *file) static int mxc_vout_open(struct file *file) { struct mxc_vout_output *vout = NULL; - int ret; + int ret = 0; vout = video_drvdata(file); diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c index 8a4230949b4b..98e9c13a7615 100644 --- a/sound/soc/codecs/sgtl5000.c +++ b/sound/soc/codecs/sgtl5000.c @@ -1200,7 +1200,7 @@ static struct snd_soc_dai_driver sgtl5000_dai = { .symmetric_rates = 1, }; -static int sgtl5000_volatile_register(unsigned int reg) +static int sgtl5000_volatile_register(struct snd_soc_codec *codec, unsigned int reg) { switch (reg) { case SGTL5000_CHIP_ID: