Skip to contentSkip to conversation

omap: pm: opp: remove opp_id

PATCH In review Nishanth Menon 2 participants 3 messages Aug 11, 2010 – Aug 12, 2010 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [PM-OPP][PATCH 1/2] omap: pm: opp: remove opp_id

#1 lore raw

PATCH v2 1/2 omap: pm: opp: remove opp_id

Remove the concept of opp_id now that SRF is gone from pm branch the new framework should exist on silicon variants without the notion of opp ids

This also removes the deprecated functions opp_get_opp_id and opp_find_by_opp_id.

Cc Eduardo Valentin <[email protected]>
Cc Kevin Hilman <[email protected]>
Cc Paul Walmsley <[email protected]>
Cc Rajendra Nayak <[email protected]>
Cc Sanjeev Premi <[email protected]>
Cc Thara Gopinath <[email protected]>
Cc Tony Lindgren <[email protected]>

---
v1: original patch https://patchwork.kernel.org/patch/118723/
v2: I missed cleaning up opp_add properly :( (I should have removed
the variable i and removed the list walk for renumbering..) apologies on the spam..
Note: for folks using SRF, you'd have to revert this patch

 arch/arm/plat-omap/include/plat/opp.h |   15 ---------
 arch/arm/plat-omap/opp.c              |   52 ---------------------------------
 2 files changed, 0 insertions(+), 67 deletions(-)
arch/arm/plat-omap/include/plat/opp.h +0 -15
index f9feb8d..997b56e 100644
@@ -82,10 +82,6 @@ int opp_enable(struct omap_opp *opp);
 
 int opp_disable(struct omap_opp *opp);
 
-struct omap_opp *__deprecated opp_find_by_opp_id(struct device *dev,
-						  u8 opp_id);
-u8 __deprecated opp_get_opp_id(struct omap_opp *opp);
-
 void opp_init_cpufreq_table(struct device *dev,
 			    struct cpufreq_frequency_table **table);
 #else
@@ -139,17 +135,6 @@ static inline int opp_disable(struct omap_opp *opp)
 	return 0;
 }
 
-static inline struct omap_opp *__deprecated
-opp_find_by_opp_id(struct omap_opp *opps, u8 opp_id)
-{
-	return ERR_PTR(-EINVAL);
-}
-
-static inline u8 __deprecated opp_get_opp_id(struct omap_opp *opp)
-{
-	return 0;
-}
-
 static inline
 void opp_init_cpufreq_table(struct omap_opp *opps,
 			    struct cpufreq_frequency_table **table)
arch/arm/plat-omap/opp.c +0 -52

82 lines not on this page · raw message

Signature · 1 line
1.6.3.3
#2 lore raw
Quoted 23 lines · Nishanth Menon

Remove the concept of opp_id now that SRF is gone from pm branch the new framework should exist on silicon variants without the notion of opp ids

This also removes the deprecated functions opp_get_opp_id and opp_find_by_opp_id.

Cc Eduardo Valentin <[email protected]>
Cc Kevin Hilman <[email protected]>
Cc Paul Walmsley <[email protected]>
Cc Rajendra Nayak <[email protected]>
Cc Sanjeev Premi <[email protected]>
Cc Thara Gopinath <[email protected]>
Cc Tony Lindgren <[email protected]>

---
v1: original patch https://patchwork.kernel.org/patch/118723/
v2: I missed cleaning up opp_add properly :( (I should have removed
the variable i and removed the list walk for renumbering..) apologies on the spam..
Note: for folks using SRF, you'd have to revert this patch

Quoted 3 lines
 arch/arm/plat-omap/include/plat/opp.h |   15 ---------
 arch/arm/plat-omap/opp.c              |   52 ---------------------------------
 2 files changed, 0 insertions(+), 67 deletions(-)

I squashed this into patch 1 in pm-opp and also removed the references to to the deprecated functions in Documentation/arm/OMAP/omap_pm.

Kevin

#3 lore raw

Kevin Hilman had written, on 08/11/2010 06:46 PM, the following:

Quoted 5 lines
Quoted 3 lines · Nishanth Menon

Remove the concept of opp_id now that SRF is gone from pm branch the new framework should exist on silicon variants without the notion of opp ids

[...]

Quoted 7 lines
Quoted 4 lines
 arch/arm/plat-omap/include/plat/opp.h |   15 ---------
 arch/arm/plat-omap/opp.c              |   52 ---------------------------------
 2 files changed, 0 insertions(+), 67 deletions(-)

I squashed this into patch 1 in pm-opp and also removed the references to to the deprecated functions in Documentation/arm/OMAP/omap_pm.

arrgh.. i missed that.. thanks for doing it..

Signature · 2 lines
Regards,
Nishanth Menon