Skip to content

Commit

Permalink
cpufreq: OMAP: fixup for omap_device changes, include <linux/module.h>
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kevin Hilman committed Nov 10, 2011
1 parent 1c78217 commit c1b547b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/cpufreq/omap-cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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>

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit c1b547b

Please sign in to comment.