]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
Use the correct flags type where local_irq_save
authorKyungmin Park <kmpark@infradead.org>
Mon, 17 Sep 2007 07:41:03 +0000 (16:41 +0900)
committerTony Lindgren <tony@atomide.com>
Mon, 17 Sep 2007 18:19:24 +0000 (11:19 -0700)
[PATCH] Use the correct flags where the local_irq_save

We should use the 'unsigned long flags'.

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/clock24xx.c
arch/arm/mach-omap2/memory.c

index db941400acc18210ccd650ebbec1006a3781f1bf..b792589e88e05448b9a259e72ee999efc633728a 100644 (file)
@@ -178,10 +178,11 @@ static void omap2_dpll_recalc(struct clk *clk)
 
 static int omap2_reprogram_dpll(struct clk *clk, unsigned long rate)
 {
-       u32 flags, cur_rate, low, mult, div, valid_rate, done_rate;
+       u32 cur_rate, low, mult, div, valid_rate, done_rate;
        u32 bypass = 0;
        struct prcm_config tmpset;
        const struct dpll_data *dd;
+       unsigned long flags;
        int ret = -EINVAL;
 
        local_irq_save(flags);
@@ -295,9 +296,10 @@ static long omap2_round_to_table_rate(struct clk *clk, unsigned long rate)
 /* Sets basic clocks based on the specified rate */
 static int omap2_select_table_rate(struct clk *clk, unsigned long rate)
 {
-       u32 flags, cur_rate, done_rate, bypass = 0, tmp;
+       u32 cur_rate, done_rate, bypass = 0, tmp;
        struct prcm_config *prcm;
        unsigned long found_speed = 0;
+       unsigned long flags;
 
        if (clk != &virt_prcm_set)
                return -EINVAL;
index 089b559f6a98bd0b75bcc3d79bd37b8244c7845b..008a0e4f9ab52b1300dbc944a7934f08617cad71 100644 (file)
@@ -75,7 +75,8 @@ u32 omap2_dll_force_needed(void)
 u32 omap2_reprogram_sdrc(u32 level, u32 force)
 {
        u32 dll_ctrl, m_type;
-       u32 prev = curr_perf_level, flags;
+       u32 prev = curr_perf_level;
+       unsigned long flags;
 
        if ((curr_perf_level == level) && !force)
                return prev;