diff options
| author | Nishanth Menon <[email protected]> | 2013-09-19 16:03:50 -0500 | 
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2013-10-25 22:33:23 +0200 | 
| commit | 5d4879cda67b09f086807821cf594ee079d6dfbe (patch) | |
| tree | 58532256e9bff42902510175e7cb7c727a89280b /arch/arm/mach-omap2/board-omap3beagle.c | |
| parent | 31d141e3a666269a3b6fcccddb0351caf7454240 (diff) | |
PM / OPP: rename functions to dev_pm_opp*
Since Operating Performance Points (OPP) functions are specific to
device specific power management, be specific and rename opp_*
accessors in OPP library with dev_pm_opp_* equivalent.
Affected functions are:
 opp_get_voltage
 opp_get_freq
 opp_get_opp_count
 opp_find_freq_exact
 opp_find_freq_floor
 opp_find_freq_ceil
 opp_add
 opp_enable
 opp_disable
 opp_get_notifier
 opp_init_cpufreq_table
 opp_free_cpufreq_table
Reported-by: Randy Dunlap <[email protected]>
Signed-off-by: Nishanth Menon <[email protected]>
Acked-by: Viresh Kumar <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'arch/arm/mach-omap2/board-omap3beagle.c')
| -rw-r--r-- | arch/arm/mach-omap2/board-omap3beagle.c | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c index f26918467efc..33969e5a149f 100644 --- a/arch/arm/mach-omap2/board-omap3beagle.c +++ b/arch/arm/mach-omap2/board-omap3beagle.c @@ -522,11 +522,11 @@ static int __init beagle_opp_init(void)  			return -ENODEV;  		}  		/* Enable MPU 1GHz and lower opps */ -		r = opp_enable(mpu_dev, 800000000); +		r = dev_pm_opp_enable(mpu_dev, 800000000);  		/* TODO: MPU 1GHz needs SR and ABB */  		/* Enable IVA 800MHz and lower opps */ -		r |= opp_enable(iva_dev, 660000000); +		r |= dev_pm_opp_enable(iva_dev, 660000000);  		/* TODO: DSP 800MHz needs SR and ABB */  		if (r) {  			pr_err("%s: failed to enable higher opp %d\n", @@ -535,8 +535,8 @@ static int __init beagle_opp_init(void)  			 * Cleanup - disable the higher freqs - we dont care  			 * about the results  			 */ -			opp_disable(mpu_dev, 800000000); -			opp_disable(iva_dev, 660000000); +			dev_pm_opp_disable(mpu_dev, 800000000); +			dev_pm_opp_disable(iva_dev, 660000000);  		}  	}  	return 0;  |