[POWERPC] powermac: Use generic suspend code
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 11 Dec 2007 14:25:59 +0000 (01:25 +1100)
committerPaul Mackerras <paulus@samba.org>
Wed, 19 Dec 2007 12:02:35 +0000 (23:02 +1100)
commitf91266edba3c6ef001819c5abe4c3a0643f66fc9
tree9ca84ad4550288c3b467dea7197b935c345755d7
parent887ef35ae4eb269839e0f296b132edc15477db1c
[POWERPC] powermac: Use generic suspend code

This adds platform_suspend_ops for PMU based machines, directly in
the PMU driver.  This allows suspending via /sys/power/state
on powerbooks.

The patch also replaces the PMU ioctl with a simple call to
pm_suspend(PM_SUSPEND_MEM).

Additionally, it cleans up some debug code.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
drivers/macintosh/via-pmu.c