From: Jeremy Fitzhardinge Subject: [PATCH] xen: fix compilation when CONFIG_PM_SLEEP is disabled Date: Thu, 29 May 2008 09:02:19 +0100 Message-ID: <483E630B.5090006@goop.org> References: <9e8d06e5ae8024829836.1211550077@localhost> <20080529073150.GA19744@elte.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20080529073150.GA19744@elte.hu> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ingo Molnar Cc: Randy Dunlap , Thomas Gleixner , xen-devel , LKML List-Id: xen-devel@lists.xenproject.org Xen save/restore depends on CONFIG_PM_SLEEP being set for device_power_up/down. Signed-off-by: Jeremy Fitzhardinge Cc: Randy Dunlap --- drivers/xen/manage.c | 2 ++ 1 file changed, 2 insertions(+) =================================================================== --- a/drivers/xen/manage.c +++ b/drivers/xen/manage.c @@ -31,6 +31,7 @@ /* Ignore multiple shutdown requests. */ static enum shutdown_state shutting_down = SHUTDOWN_INVALID; +#ifdef CONFIG_PM_SLEEP static int xen_suspend(void *data) { int *cancelled = data; @@ -121,6 +122,7 @@ #endif shutting_down = SHUTDOWN_INVALID; } +#endif /* CONFIG_PM_SLEEP */ static void shutdown_handler(struct xenbus_watch *watch, const char **vec, unsigned int len)