]> Pileus Git - ~andy/linux/commitdiff
cpufreq: OMAP: fixup for omap_device changes, include <linux/module.h>
authorKevin Hilman <khilman@ti.com>
Fri, 30 Sep 2011 17:41:26 +0000 (10:41 -0700)
committerKevin Hilman <khilman@ti.com>
Thu, 10 Nov 2011 18:11:20 +0000 (10:11 -0800)
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>
drivers/cpufreq/omap-cpufreq.c

index ad94b4f2892c79740e8884f34daee29638fc05c9..5d04c57aae30d7b330846a8d8e64c8d59c08a0d1 100644 (file)
@@ -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;