Commit d382c717 authored by Ben Dooks's avatar Ben Dooks Committed by Russell King

[ARM PATCH] 2299/1: S3C2410 - pm debug patch

Patch from Ben Dooks

If CONFIG_S3C2410_PM_CHECK is set and CONFIG_S3C2410_PM_DEBUG is
not set, then the pm.c file will not build as uart_save[] is not
defined.

Signed-off-by: Dimitry Andric

Signed-off-by: Ben Dooks
Signed-off-by: Russell King
parent 4c244d1a
......@@ -187,6 +187,8 @@ static void s3c2410_pm_debug_init(void)
#define DBG(fmt...) printk(KERN_DEBUG fmt)
#define s3c2410_pm_debug_init() do { } while(0)
static struct sleep_save uart_save[] = {};
#endif
#if defined(CONFIG_S3C2410_PM_CHECK) && CONFIG_S3C2410_PM_CHECK_CHUNKSIZE != 0
......@@ -378,8 +380,6 @@ static void s3c2410_pm_check_restore(void)
#else
static struct sleep_save uart_save[] = {};
#define s3c2410_pm_check_prepare() do { } while(0)
#define s3c2410_pm_check_restore() do { } while(0)
#define s3c2410_pm_check_store() do { } while(0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment