aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap1/pm.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2007-10-18 06:04:40 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-18 17:37:18 -0400
commit26398a70ea35f153feb799fa850c71685667712b (patch)
treee75959ef010bf3521bce2a33e59565c34b0c109d /arch/arm/mach-omap1/pm.c
parent95d9ffbe01fb21d524c86bf77871255066bc6e55 (diff)
PM: Rename struct pm_ops and related things
The name of 'struct pm_ops' suggests that it is related to the power management in general, but in fact it is only related to suspend.  Moreover, its name should indicate what this structure is used for, so it seems reasonable to change it to 'struct platform_suspend_ops'.  In that case, the name of the global variable of this type used by the PM core and the names of related functions should be changed accordingly. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Acked-by: Pavel Machek <pavel@ucw.cz> Cc: Len Brown <lenb@kernel.org> Cc: Greg KH <greg@kroah.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/arm/mach-omap1/pm.c')
-rw-r--r--arch/arm/mach-omap1/pm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-omap1/pm.c b/arch/arm/mach-omap1/pm.c
index 1a27611096a9..8db38dd247a4 100644
--- a/arch/arm/mach-omap1/pm.c
+++ b/arch/arm/mach-omap1/pm.c
@@ -673,11 +673,11 @@ static struct irqaction omap_wakeup_irq = {
673 673
674 674
675 675
676static struct pm_ops omap_pm_ops ={ 676static struct platform_suspend_ops omap_pm_ops ={
677 .prepare = omap_pm_prepare, 677 .prepare = omap_pm_prepare,
678 .enter = omap_pm_enter, 678 .enter = omap_pm_enter,
679 .finish = omap_pm_finish, 679 .finish = omap_pm_finish,
680 .valid = pm_valid_only_mem, 680 .valid = suspend_valid_only_mem,
681}; 681};
682 682
683static int __init omap_pm_init(void) 683static int __init omap_pm_init(void)
@@ -734,7 +734,7 @@ static int __init omap_pm_init(void)
734 else if (cpu_is_omap16xx()) 734 else if (cpu_is_omap16xx())
735 omap_writel(OMAP1610_IDLECT3_VAL, OMAP1610_IDLECT3); 735 omap_writel(OMAP1610_IDLECT3_VAL, OMAP1610_IDLECT3);
736 736
737 pm_set_ops(&omap_pm_ops); 737 suspend_set_ops(&omap_pm_ops);
738 738
739#if defined(DEBUG) && defined(CONFIG_PROC_FS) 739#if defined(DEBUG) && defined(CONFIG_PROC_FS)
740 omap_pm_init_proc(); 740 omap_pm_init_proc();