diff options
author | Kevin Hilman <khilman@ti.com> | 2011-09-30 13:41:26 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@ti.com> | 2011-11-10 13:11:20 -0500 |
commit | c1b547bc222f4027d9394b6bd8f4a6bb0bd7b1b4 (patch) | |
tree | a2d11e2f7260f145a44aa63b9778bd182d4de54c | |
parent | 1c78217fc8c0983f5768a2d1c17c022f1079751e (diff) |
cpufreq: OMAP: fixup for omap_device changes, include <linux/module.h>
Minor fixups to work starting with v3.2:
- use the new omap_device API for getting a device by name.
- need to include <linux/module.h>
Signed-off-by: Kevin Hilman <khilman@ti.com>
-rw-r--r-- | drivers/cpufreq/omap-cpufreq.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/cpufreq/omap-cpufreq.c b/drivers/cpufreq/omap-cpufreq.c index ad94b4f2892c..5d04c57aae30 100644 --- a/drivers/cpufreq/omap-cpufreq.c +++ b/drivers/cpufreq/omap-cpufreq.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <linux/io.h> | 24 | #include <linux/io.h> |
25 | #include <linux/opp.h> | 25 | #include <linux/opp.h> |
26 | #include <linux/cpu.h> | 26 | #include <linux/cpu.h> |
27 | #include <linux/module.h> | ||
27 | 28 | ||
28 | #include <asm/system.h> | 29 | #include <asm/system.h> |
29 | #include <asm/smp_plat.h> | 30 | #include <asm/smp_plat.h> |
@@ -32,6 +33,7 @@ | |||
32 | #include <plat/clock.h> | 33 | #include <plat/clock.h> |
33 | #include <plat/omap-pm.h> | 34 | #include <plat/omap-pm.h> |
34 | #include <plat/common.h> | 35 | #include <plat/common.h> |
36 | #include <plat/omap_device.h> | ||
35 | 37 | ||
36 | #include <mach/hardware.h> | 38 | #include <mach/hardware.h> |
37 | 39 | ||
@@ -252,7 +254,7 @@ static int __init omap_cpufreq_init(void) | |||
252 | return -EINVAL; | 254 | return -EINVAL; |
253 | } | 255 | } |
254 | 256 | ||
255 | mpu_dev = omap2_get_mpuss_device(); | 257 | mpu_dev = omap_device_get_by_hwmod_name("mpu"); |
256 | if (!mpu_dev) { | 258 | if (!mpu_dev) { |
257 | pr_warning("%s: unable to get the mpu device\n", __func__); | 259 | pr_warning("%s: unable to get the mpu device\n", __func__); |
258 | return -EINVAL; | 260 | return -EINVAL; |