summaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq
diff options
context:
space:
mode:
authorKevin Hilman <khilman@ti.com>2011-09-30 10:41:26 -0700
committerKevin Hilman <khilman@ti.com>2011-11-10 10:11:20 -0800
commitc1b547bc222f4027d9394b6bd8f4a6bb0bd7b1b4 (patch)
treea2d11e2f7260f145a44aa63b9778bd182d4de54c /drivers/cpufreq
parent1c78217fc8c0983f5768a2d1c17c022f1079751e (diff)
downloadblackbird-op-linux-c1b547bc222f4027d9394b6bd8f4a6bb0bd7b1b4.tar.gz
blackbird-op-linux-c1b547bc222f4027d9394b6bd8f4a6bb0bd7b1b4.zip
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>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r--drivers/cpufreq/omap-cpufreq.c4
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 @@
#include <linux/io.h>
#include <linux/opp.h>
#include <linux/cpu.h>
+#include <linux/module.h>
#include <asm/system.h>
#include <asm/smp_plat.h>
@@ -32,6 +33,7 @@
#include <plat/clock.h>
#include <plat/omap-pm.h>
#include <plat/common.h>
+#include <plat/omap_device.h>
#include <mach/hardware.h>
@@ -252,7 +254,7 @@ static int __init omap_cpufreq_init(void)
return -EINVAL;
}
- mpu_dev = omap2_get_mpuss_device();
+ mpu_dev = omap_device_get_by_hwmod_name("mpu");
if (!mpu_dev) {
pr_warning("%s: unable to get the mpu device\n", __func__);
return -EINVAL;
OpenPOWER on IntegriCloud