]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/meta-ti-glsdk.git/blob - recipes-kernel/linux/linux-3.0/pm-wip/voltdm/0083-OMAP4-prm-Remove-deprecated-functions.patch
linux 3.0: refresh all patches against 3.0.7
[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-3.0 / pm-wip / voltdm / 0083-OMAP4-prm-Remove-deprecated-functions.patch
1 From 5b299acba0f1a1ed0003dcea0ae2c8e31b6ee4c7 Mon Sep 17 00:00:00 2001
2 From: Benoit Cousson <b-cousson@ti.com>
3 Date: Sun, 10 Jul 2011 05:56:31 -0600
4 Subject: [PATCH 083/149] OMAP4: prm: Remove deprecated functions
6 The new prminst_xxx accessors based on partition and offset
7 is now used, so removed all the previous prcm_xxx accessors.
9 Signed-off-by: Benoit Cousson <b-cousson@ti.com>
10 Cc: Paul Walmsley <paul@pwsan.com>
11 Cc: Rajendra Nayak <rnayak@ti.com>
12 [paul@pwsan.com: remove fn prototypes also]
13 Signed-off-by: Paul Walmsley <paul@pwsan.com>
14 ---
15  arch/arm/mach-omap2/prm44xx.c |   37 -------------------------------------
16  arch/arm/mach-omap2/prm44xx.h |    4 ----
17  2 files changed, 0 insertions(+), 41 deletions(-)
19 diff --git a/arch/arm/mach-omap2/prm44xx.c b/arch/arm/mach-omap2/prm44xx.c
20 index f815329..0016555 100644
21 --- a/arch/arm/mach-omap2/prm44xx.c
22 +++ b/arch/arm/mach-omap2/prm44xx.c
23 @@ -50,40 +50,3 @@ u32 omap4_prm_rmw_inst_reg_bits(u32 mask, u32 bits, s16 inst, s16 reg)
24  
25         return v;
26  }
27 -
28 -/* Read a PRM register, AND it, and shift the result down to bit 0 */
29 -/* XXX deprecated */
30 -u32 omap4_prm_read_bits_shift(void __iomem *reg, u32 mask)
31 -{
32 -       u32 v;
33 -
34 -       v = __raw_readl(reg);
35 -       v &= mask;
36 -       v >>= __ffs(mask);
37 -
38 -       return v;
39 -}
40 -
41 -/* Read-modify-write a register in a PRM module. Caller must lock */
42 -/* XXX deprecated */
43 -u32 omap4_prm_rmw_reg_bits(u32 mask, u32 bits, void __iomem *reg)
44 -{
45 -       u32 v;
46 -
47 -       v = __raw_readl(reg);
48 -       v &= ~mask;
49 -       v |= bits;
50 -       __raw_writel(v, reg);
51 -
52 -       return v;
53 -}
54 -
55 -u32 omap4_prm_set_inst_reg_bits(u32 bits, s16 inst, s16 reg)
56 -{
57 -       return omap4_prm_rmw_inst_reg_bits(bits, bits, inst, reg);
58 -}
59 -
60 -u32 omap4_prm_clear_inst_reg_bits(u32 bits, s16 inst, s16 reg)
61 -{
62 -       return omap4_prm_rmw_inst_reg_bits(bits, 0x0, inst, reg);
63 -}
64 diff --git a/arch/arm/mach-omap2/prm44xx.h b/arch/arm/mach-omap2/prm44xx.h
65 index 725a6a8..7dfa379 100644
66 --- a/arch/arm/mach-omap2/prm44xx.h
67 +++ b/arch/arm/mach-omap2/prm44xx.h
68 @@ -750,10 +750,6 @@
69  extern u32 omap4_prm_read_inst_reg(s16 inst, u16 idx);
70  extern void omap4_prm_write_inst_reg(u32 val, s16 inst, u16 idx);
71  extern u32 omap4_prm_rmw_inst_reg_bits(u32 mask, u32 bits, s16 inst, s16 idx);
72 -extern u32 omap4_prm_rmw_reg_bits(u32 mask, u32 bits, void __iomem *reg);
73 -extern u32 omap4_prm_set_inst_reg_bits(u32 bits, s16 inst, s16 idx);
74 -extern u32 omap4_prm_clear_inst_reg_bits(u32 bits, s16 inst, s16 idx);
75 -extern u32 omap4_prm_read_bits_shift(void __iomem *reg, u32 mask);
76  
77  # endif
78  
79 -- 
80 1.6.6.1