@@ -26,7 +26,7 @@
#include <mach/omap-pm.h>
#include <mach/powerdomain.h>
#include <mach/resource.h>
-#include <mach/omapdev.h>
+#include <mach/omap_device.h>
struct omap_opp *dsp_opps;
struct omap_opp *mpu_opps;
@@ -96,7 +96,7 @@ void omap_pm_set_min_bus_tput(struct device *dev, u8 agent_id, unsigned long r)
void omap_pm_set_max_dev_wakeup_lat(struct device *dev, long t)
{
- struct omapdev *odev;
+ struct omap_device *odev;
struct powerdomain *pwrdm_dev;
struct platform_device *pdev;
char *lat_res_name;
@@ -121,9 +121,9 @@ void omap_pm_set_max_dev_wakeup_lat(struct device *dev, long t)
return;
}
- odev = omapdev_find_pdev(pdev);
+ odev = omap_device_find_pdev(pdev);
if (odev) {
- pwrdm_dev = omapdev_get_pwrdm(odev);
+ pwrdm_dev = omap_device_get_pwrdm(odev);
} else {
printk(KERN_ERR "OMAP-PM: Error: Could not find omapdev "
"for %s\n", pdev->name);
@@ -277,7 +277,7 @@ EXPORT_SYMBOL(omap_pm_cpu_get_freq);
int omap_pm_get_dev_context_loss_count(struct device *dev)
{
struct platform_device *pdev;
- struct omapdev *odev;
+ struct omap_device *odev;
struct powerdomain *pwrdm;
if (!dev) {
@@ -293,10 +293,10 @@ int omap_pm_get_dev_context_loss_count(struct device *dev)
* off counter.
*/
pdev = to_platform_device(dev);
- odev = omapdev_find_pdev(pdev);
+ odev = omap_device_find_pdev(pdev);
if (odev) {
- pwrdm = omapdev_get_pwrdm(odev);
+ pwrdm = omap_device_get_pwrdm(odev);
if (pwrdm)
return pwrdm->state_counter[0];
}
This patch will fix the build issues currently seen when SRF driver is selected for DVFS (cpufreq) support. SRF code is updated to use the new omap_device layer. Patch tested on OMAP3 EVM. Signed-off-by: Ranjith Lohithakshan <ranjithl@ti.com> --- arch/arm/plat-omap/omap-pm-srf.c | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-)