diff options
| author | Kevin Hilman <khilman@ti.com> | 2012-09-06 17:22:44 -0400 |
|---|---|---|
| committer | Kevin Hilman <khilman@ti.com> | 2012-10-08 17:58:56 -0400 |
| commit | 747a7f64201b8ffa8654c8767c5f794fdfa4239e (patch) | |
| tree | 3bb4c11644501f1cee1c0aac6f2b0c8c9012e714 | |
| parent | e2ee1b4d86f53c49c06a14dc10616f6d8aa05ea9 (diff) | |
cpufreq: OMAP: use get_cpu_device() instead of omap_device API
OMAP PM core code has moved to using the existing, generic CPU devices
for attaching OPPs, so the CPUfreq driver can now use the generic
get_cpu_device() API instead of the OMAP-specific omap_device API.
This allows us to remove the last <plat/*> include from this driver.
Cc: Paul Walmsley <paul@pwsan.com>
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Kevin Hilman <khilman@ti.com>
| -rw-r--r-- | drivers/cpufreq/omap-cpufreq.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/cpufreq/omap-cpufreq.c b/drivers/cpufreq/omap-cpufreq.c index 5d1f5e442ecc..1f3417a8322d 100644 --- a/drivers/cpufreq/omap-cpufreq.c +++ b/drivers/cpufreq/omap-cpufreq.c | |||
| @@ -30,8 +30,6 @@ | |||
| 30 | #include <asm/smp_plat.h> | 30 | #include <asm/smp_plat.h> |
| 31 | #include <asm/cpu.h> | 31 | #include <asm/cpu.h> |
| 32 | 32 | ||
| 33 | #include <plat/omap_device.h> | ||
| 34 | |||
| 35 | /* OPP tolerance in percentage */ | 33 | /* OPP tolerance in percentage */ |
| 36 | #define OPP_TOLERANCE 4 | 34 | #define OPP_TOLERANCE 4 |
| 37 | 35 | ||
| @@ -255,10 +253,10 @@ static struct cpufreq_driver omap_driver = { | |||
| 255 | 253 | ||
| 256 | static int __init omap_cpufreq_init(void) | 254 | static int __init omap_cpufreq_init(void) |
| 257 | { | 255 | { |
| 258 | mpu_dev = omap_device_get_by_hwmod_name("mpu"); | 256 | mpu_dev = get_cpu_device(0); |
| 259 | if (IS_ERR(mpu_dev)) { | 257 | if (!mpu_dev) { |
| 260 | pr_warning("%s: unable to get the mpu device\n", __func__); | 258 | pr_warning("%s: unable to get the mpu device\n", __func__); |
| 261 | return PTR_ERR(mpu_dev); | 259 | return -EINVAL; |
| 262 | } | 260 | } |
| 263 | 261 | ||
| 264 | mpu_reg = regulator_get(mpu_dev, "vcc"); | 262 | mpu_reg = regulator_get(mpu_dev, "vcc"); |
