diff options
author | Sekhar Nori <nsekhar@ti.com> | 2009-10-22 05:42:16 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2009-11-25 13:21:37 -0500 |
commit | 13d5e27a4482e43bea9073706033c84cd873b5ca (patch) | |
tree | 2b66f5238dce2563741bf0524b2d731a7dc10ded /arch/arm/mach-davinci/cpufreq.c | |
parent | 5aeb15aafc0c378d4ae2aff7b5d5c686793b8a0e (diff) |
davinci: DA850/OMAP-L138: avoid using separate initcall for initializing regulator
Using a device_initcall() for initializing the voltage regulator
on DA850 is not such a good idea because it gets called for all
platforms - even those who do not have a regulator implemented.
This leads to a big fat warning message during boot-up when
regulator cannot be found.
Instead, tie initialization of voltage regulator to cpufreq init.
Define a platform specific init call which in case of DA850 gets
used for initializing the regulator. On other future platforms it
can be used for other purposes.
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-davinci/cpufreq.c')
-rw-r--r-- | arch/arm/mach-davinci/cpufreq.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/cpufreq.c b/arch/arm/mach-davinci/cpufreq.c index 8c8c07b12d87..d3fa6de1e20f 100644 --- a/arch/arm/mach-davinci/cpufreq.c +++ b/arch/arm/mach-davinci/cpufreq.c | |||
@@ -127,6 +127,13 @@ static int __init davinci_cpu_init(struct cpufreq_policy *policy) | |||
127 | if (policy->cpu != 0) | 127 | if (policy->cpu != 0) |
128 | return -EINVAL; | 128 | return -EINVAL; |
129 | 129 | ||
130 | /* Finish platform specific initialization */ | ||
131 | if (pdata->init) { | ||
132 | result = pdata->init(); | ||
133 | if (result) | ||
134 | return result; | ||
135 | } | ||
136 | |||
130 | policy->cur = policy->min = policy->max = davinci_getspeed(0); | 137 | policy->cur = policy->min = policy->max = davinci_getspeed(0); |
131 | 138 | ||
132 | if (freq_table) { | 139 | if (freq_table) { |