]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00229708 [MX6SL] Fix all build warnings.
authorNancy Chen <Nancy.Chen@freescale.com>
Mon, 15 Oct 2012 15:52:08 +0000 (10:52 -0500)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:34 +0000 (08:35 +0200)
Fix all build warnings in files:
arch/arm/mach-mx6/board-mx6sl_common.h
arch/arm/mach-mx6/board-mx6sl_evk.c
arch/arm/mach-mx6/clock_mx6sl.c
arch/arm/mach-mx6/cpu_regulator-mx6.c
arch/arm/mach-mx6/pm.c
arch/arm/mach-mx6/system.c
arch/arm/plat-mxc/dvfs_core.c

Signed-off-by: Nancy Chen <Nancy.Chen@freescale.com>
arch/arm/mach-mx6/board-mx6sl_common.h
arch/arm/mach-mx6/board-mx6sl_evk.c
arch/arm/mach-mx6/clock_mx6sl.c
arch/arm/mach-mx6/cpu_regulator-mx6.c
arch/arm/mach-mx6/pm.c
arch/arm/mach-mx6/system.c
arch/arm/plat-mxc/dvfs_core.c

index 4a04cbea069447bae6557361bcf77526edd9045a..c432e0a661bab420b2230a2a6366bec44eb116f3 100644 (file)
@@ -389,40 +389,11 @@ static iomux_v3_cfg_t mx6sl_brd_spdc_disable_pads[] = {
        MX6SL_PAD_EPDC_PWRWAKEUP__GPIO_2_14,
 };
 
-static iomux_v3_cfg_t mx6sl_brd_csi_enable_pads[] = {
-       MX6SL_PAD_EPDC_GDRL__CSI_MCLK,
-       MX6SL_PAD_EPDC_SDCE3__I2C3_SDA,
-       MX6SL_PAD_EPDC_SDCE2__I2C3_SCL,
-       MX6SL_PAD_EPDC_GDCLK__CSI_PIXCLK,
-       MX6SL_PAD_EPDC_GDSP__CSI_VSYNC,
-       MX6SL_PAD_EPDC_GDOE__CSI_HSYNC,
-       MX6SL_PAD_EPDC_SDLE__CSI_D_9,
-       MX6SL_PAD_EPDC_SDCLK__CSI_D_8,
-       MX6SL_PAD_EPDC_D7__CSI_D_7,
-       MX6SL_PAD_EPDC_D6__CSI_D_6,
-       MX6SL_PAD_EPDC_D5__CSI_D_5,
-       MX6SL_PAD_EPDC_D4__CSI_D_4,
-       MX6SL_PAD_EPDC_D3__CSI_D_3,
-       MX6SL_PAD_EPDC_D2__CSI_D_2,
-       MX6SL_PAD_EPDC_D1__CSI_D_1,
-       MX6SL_PAD_EPDC_D0__CSI_D_0,
-
-       MX6SL_PAD_EPDC_SDSHR__GPIO_1_26,        /* CMOS_RESET_B GPIO */
-       MX6SL_PAD_EPDC_SDOE__GPIO_1_25,         /* CMOS_PWDN GPIO */
-};
-
 static iomux_v3_cfg_t mx6sl_brd_elan_pads[] = {
        MX6SL_PAD_EPDC_PWRCTRL3__GPIO_2_10,     /* INT */
        MX6SL_PAD_EPDC_PWRCTRL2__GPIO_2_9,      /* CE */
        MX6SL_PAD_KEY_COL6__GPIO_4_4,           /* RST */
 };
-       /* uart2 pins */
-static iomux_v3_cfg_t mx6sl_uart2_pads[] = {
-       MX6SL_PAD_SD2_DAT5__UART2_TXD,
-       MX6SL_PAD_SD2_DAT4__UART2_RXD,
-       MX6SL_PAD_SD2_DAT6__UART2_RTS,
-       MX6SL_PAD_SD2_DAT7__UART2_CTS,
-};
 
 #define MX6SL_USDHC_8BIT_PAD_SETTING(id, speed)        \
 mx6sl_sd##id##_##speed##mhz[] = {              \
index 9bdd6c197e5c1a19cc2457e62b644a1dee238bb3..4c9c4d36e7409aa2cbff14bceebc670db150677e 100644 (file)
@@ -86,6 +86,36 @@ extern int __init mx6sl_evk_init_pfuze100(u32 int_gpio);
 
 static int csi_enabled;
 
+static iomux_v3_cfg_t mx6sl_brd_csi_enable_pads[] = {
+       MX6SL_PAD_EPDC_GDRL__CSI_MCLK,
+       MX6SL_PAD_EPDC_SDCE3__I2C3_SDA,
+       MX6SL_PAD_EPDC_SDCE2__I2C3_SCL,
+       MX6SL_PAD_EPDC_GDCLK__CSI_PIXCLK,
+       MX6SL_PAD_EPDC_GDSP__CSI_VSYNC,
+       MX6SL_PAD_EPDC_GDOE__CSI_HSYNC,
+       MX6SL_PAD_EPDC_SDLE__CSI_D_9,
+       MX6SL_PAD_EPDC_SDCLK__CSI_D_8,
+       MX6SL_PAD_EPDC_D7__CSI_D_7,
+       MX6SL_PAD_EPDC_D6__CSI_D_6,
+       MX6SL_PAD_EPDC_D5__CSI_D_5,
+       MX6SL_PAD_EPDC_D4__CSI_D_4,
+       MX6SL_PAD_EPDC_D3__CSI_D_3,
+       MX6SL_PAD_EPDC_D2__CSI_D_2,
+       MX6SL_PAD_EPDC_D1__CSI_D_1,
+       MX6SL_PAD_EPDC_D0__CSI_D_0,
+
+       MX6SL_PAD_EPDC_SDSHR__GPIO_1_26,        /* CMOS_RESET_B GPIO */
+       MX6SL_PAD_EPDC_SDOE__GPIO_1_25,         /* CMOS_PWDN GPIO */
+};
+
+/* uart2 pins */
+static iomux_v3_cfg_t mx6sl_uart2_pads[] = {
+       MX6SL_PAD_SD2_DAT5__UART2_TXD,
+       MX6SL_PAD_SD2_DAT4__UART2_RXD,
+       MX6SL_PAD_SD2_DAT6__UART2_RTS,
+       MX6SL_PAD_SD2_DAT7__UART2_CTS,
+};
+
 enum sd_pad_mode {
        SD_PAD_MODE_LOW_SPEED,
        SD_PAD_MODE_MED_SPEED,
index a18427c51515696611eae0a4816e5141d060e848..544b9951baefb71736ea9d0926f17e620e6c667f 100755 (executable)
@@ -101,7 +101,6 @@ DEFINE_SPINLOCK(mx6sl_clk_lock);
        u32 gpt_ticks; \
        u32 gpt_cnt; \
        u32 reg; \
-       unsigned long flags; \
        int result = 1; \
        gpt_rate = clk_get_rate(&gpt_clk[0]); \
        gpt_ticks = timeout / (1000000000 / gpt_rate); \
index 5019f8bedff2655d30306d3c6d72d7c4cd61f489..8eb976d2eefdb64d88128ae1ea753905ef0758c7 100644 (file)
@@ -62,7 +62,9 @@ void mx6_cpu_regulator_init(void)
 {
        int cpu;
        u32 curr_cpu = 0;
-
+#ifndef CONFIG_SMP
+       unsigned long old_loops_per_jiffy;
+#endif
        external_pureg = 0;
        cpu_regulator = regulator_get(NULL, gp_reg_id);
        if (IS_ERR(cpu_regulator))
@@ -90,7 +92,7 @@ void mx6_cpu_regulator_init(void)
                                        curr_cpu / 1000,
                                        clk_get_rate(cpu_clk) / 1000);
 #else
-                       u32 old_loops_per_jiffy = loops_per_jiffy;
+                       old_loops_per_jiffy = loops_per_jiffy;
 
                        loops_per_jiffy =
                                mx6_cpu_jiffies(old_loops_per_jiffy,
index 2308e332dc44363f68696e419821c09840a6d183..d7889312aeac2953c5960716b1d8be27e65c8ceb 100644 (file)
@@ -72,7 +72,6 @@
 static struct clk *cpu_clk;
 static struct clk *axi_clk;
 static struct clk *periph_clk;
-static struct clk *axi_org_parent;
 static struct clk *pll3_usb_otg_main_clk;
 
 static struct pm_platform_data *pm_data;
index 0e4b534de6eb677b19ab16cd836ca1a911991f5b..1c37bacdebda9252e0559b6c7e04c4c40298cd0c 100644 (file)
@@ -86,7 +86,7 @@ void mxc_cpu_lp_set(enum mxc_cpu_pwr_mode mode)
 
        int stop_mode = 0;
        void __iomem *anatop_base = IO_ADDRESS(ANATOP_BASE_ADDR);
-       u32 ccm_clpcr, anatop_val, reg;
+       u32 ccm_clpcr, anatop_val;
 
        ccm_clpcr = __raw_readl(MXC_CCM_CLPCR) & ~(MXC_CCM_CLPCR_LPM_MASK);
 
index a4a15482c71fe717acc9e214c094a4538dbb039e..b5cfba1a504735d6686c250ddce3ce1c44112b93 100755 (executable)
@@ -722,6 +722,9 @@ void stop_dvfs(void)
        unsigned long flags;
        u32 curr_cpu;
        int cpu;
+#ifndef CONFIG_SMP
+       unsigned long old_loops_per_jiffy;
+#endif
 
        if (dvfs_core_is_active) {
 
@@ -752,7 +755,7 @@ void stop_dvfs(void)
                                dvfs_cpu_jiffies(per_cpu(cpu_data, cpu).loops_per_jiffy,
                                        curr_cpu/1000, clk_get_rate(cpu_clk) / 1000);
 #else
-               u32 old_loops_per_jiffy = loops_per_jiffy;
+               old_loops_per_jiffy = loops_per_jiffy;
 
                loops_per_jiffy =
                        dvfs_cpu_jiffies(old_loops_per_jiffy,