]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
fix the building warnings
authorJason Liu <r64343@freescale.com>
Mon, 19 Dec 2011 12:39:18 +0000 (20:39 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:33:36 +0000 (08:33 +0200)
Signed-off-by: Jason Liu <r64343@freescale.com>
arch/arm/plat-mxc/cpufreq.c
arch/arm/plat-mxc/utmixc.c
drivers/media/video/mxc/output/mxc_vout.c
sound/soc/codecs/sgtl5000.c

index 5efe833347034f5a7564dc0a6511b7d458376e89..906ecca7cf781ef12766fb8b15e73192f57d0d8a 100755 (executable)
@@ -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 */
index ab475eeac0d326acc105a8a2cf10c4349853b137..227943ba127c77c787db69bfbdc7f0ca86190d7c 100755 (executable)
@@ -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);
index 57e684f99308a3a355db1a4bd8c958d65f587fc8..b93e14805ece8d79b33c37629b1c28f13c1a9bb8 100644 (file)
@@ -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);
 
index 8a4230949b4b32a15f39b62654512db7ebbbe8f0..98e9c13a7615db7fd3d7fc60cdeedadc22bc83af 100644 (file)
@@ -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: