linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Fix implicit declaration in via-pmu.c
@ 2007-12-13 21:59 Dave Jones
  2007-12-14  3:01 ` Paul Mackerras
  0 siblings, 1 reply; 3+ messages in thread
From: Dave Jones @ 2007-12-13 21:59 UTC (permalink / raw)
  To: Linux Kernel; +Cc: Paul Mackerras

drivers/macintosh/via-pmu.c: In function 'register_pmu_pm_ops':
drivers/macintosh/via-pmu.c:2481: error: implicit declaration of function 'pm_set_ops'

Signed-off-by Dave Jones <davej@redhat.com>

--- linux-2.6.23.noarch/drivers/macintosh/via-pmu.c~	2007-11-07 16:54:46.000000000 -0500
+++ linux-2.6.23.noarch/drivers/macintosh/via-pmu.c	2007-11-07 16:55:02.000000000 -0500
@@ -2469,7 +2469,7 @@ static int pmu_sleep_valid(suspend_state
 		&& (pmac_call_feature(PMAC_FTR_SLEEP_STATE, NULL, 0, -1) >= 0);
 }
 
-static struct pm_ops pmu_pm_ops = {
+static struct platform_suspend_ops pmu_pm_ops = {
 	.prepare = powerbook_prepare_sleep,
 	.enter = powerbook_sleep,
 	.finish = powerbook_finish_sleep,
@@ -2478,7 +2478,7 @@ static struct pm_ops pmu_pm_ops = {
 
 static int register_pmu_pm_ops(void)
 {
-	pm_set_ops(&pmu_pm_ops);
+	suspend_set_ops(&pmu_pm_ops);
 
 	return 0;
 }


-- 
http://www.codemonkey.org.uk

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Fix implicit declaration in via-pmu.c
  2007-12-13 21:59 Fix implicit declaration in via-pmu.c Dave Jones
@ 2007-12-14  3:01 ` Paul Mackerras
  2007-12-14  3:12   ` Dave Jones
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Mackerras @ 2007-12-14  3:01 UTC (permalink / raw)
  To: Dave Jones; +Cc: Linux Kernel

Dave Jones writes:

> drivers/macintosh/via-pmu.c: In function 'register_pmu_pm_ops':
> drivers/macintosh/via-pmu.c:2481: error: implicit declaration of function 'pm_set_ops'

What tree is this against?  I don't see any occurrences of pmu_pm_ops
in either 2.6.23 or Linus' current tree, or in my published
powerpc.git tree.

Paul.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Fix implicit declaration in via-pmu.c
  2007-12-14  3:01 ` Paul Mackerras
@ 2007-12-14  3:12   ` Dave Jones
  0 siblings, 0 replies; 3+ messages in thread
From: Dave Jones @ 2007-12-14  3:12 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: Linux Kernel, dwmw2

On Fri, Dec 14, 2007 at 02:01:20PM +1100, Paul Mackerras wrote:
 > Dave Jones writes:
 > 
 > > drivers/macintosh/via-pmu.c: In function 'register_pmu_pm_ops':
 > > drivers/macintosh/via-pmu.c:2481: error: implicit declaration of function 'pm_set_ops'
 > 
 > What tree is this against?  I don't see any occurrences of pmu_pm_ops
 > in either 2.6.23 or Linus' current tree, or in my published
 > powerpc.git tree.

*grmbl*, it's on top of a bunch of other ppc suspend bits.
I blame dwmw2.

You can safely drop this.   Thanks.

	Dave

-- 
http://www.codemonkey.org.uk

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-12-14  3:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-13 21:59 Fix implicit declaration in via-pmu.c Dave Jones
2007-12-14  3:01 ` Paul Mackerras
2007-12-14  3:12   ` Dave Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).