diff options
-rw-r--r-- | arch/arm/plat-omap/include/plat/voltage.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/arch/arm/plat-omap/include/plat/voltage.h b/arch/arm/plat-omap/include/plat/voltage.h index 9943c667f8e1..4b02227e4098 100644 --- a/arch/arm/plat-omap/include/plat/voltage.h +++ b/arch/arm/plat-omap/include/plat/voltage.h | |||
@@ -65,9 +65,6 @@ struct voltagedomain { | |||
65 | char *name; | 65 | char *name; |
66 | }; | 66 | }; |
67 | 67 | ||
68 | /* API to get the voltagedomain pointer */ | ||
69 | struct voltagedomain *omap_voltage_domain_lookup(char *name); | ||
70 | |||
71 | /** | 68 | /** |
72 | * struct omap_volt_data - Omap voltage specific data. | 69 | * struct omap_volt_data - Omap voltage specific data. |
73 | * @voltage_nominal: The possible voltage value in uV | 70 | * @voltage_nominal: The possible voltage value in uV |
@@ -131,6 +128,9 @@ int omap_voltage_register_pmic(struct voltagedomain *voltdm, | |||
131 | struct omap_volt_pmic_info *pmic_info); | 128 | struct omap_volt_pmic_info *pmic_info); |
132 | void omap_change_voltscale_method(struct voltagedomain *voltdm, | 129 | void omap_change_voltscale_method(struct voltagedomain *voltdm, |
133 | int voltscale_method); | 130 | int voltscale_method); |
131 | /* API to get the voltagedomain pointer */ | ||
132 | struct voltagedomain *omap_voltage_domain_lookup(char *name); | ||
133 | |||
134 | int omap_voltage_late_init(void); | 134 | int omap_voltage_late_init(void); |
135 | #else | 135 | #else |
136 | static inline int omap_voltage_register_pmic(struct voltagedomain *voltdm, | 136 | static inline int omap_voltage_register_pmic(struct voltagedomain *voltdm, |
@@ -144,6 +144,10 @@ static inline int omap_voltage_late_init(void) | |||
144 | { | 144 | { |
145 | return -EINVAL; | 145 | return -EINVAL; |
146 | } | 146 | } |
147 | static inline struct voltagedomain *omap_voltage_domain_lookup(char *name) | ||
148 | { | ||
149 | return ERR_PTR(-EINVAL); | ||
150 | } | ||
147 | #endif | 151 | #endif |
148 | 152 | ||
149 | #endif | 153 | #endif |