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

[ARM PATCH] 2238/1: S3C2410 - pm.h remove init code if not used

Patch from Ben Dooks

Remove s3c2410_pm_init() if CONFIG_PM is not set.

Signed-off-by: Ben Dooks
Signed-off-by: Russell King
parent ecb5548d
...@@ -14,8 +14,18 @@ ...@@ -14,8 +14,18 @@
* management * management
*/ */
#ifdef CONFIG_PM
extern __init int s3c2410_pm_init(void); extern __init int s3c2410_pm_init(void);
#else
static inline int s3c2410_pm_init(void)
{
return 0;
}
#endif
/* configuration for the IRQ mask over sleep */ /* configuration for the IRQ mask over sleep */
extern unsigned long s3c_irqwake_intmask; extern unsigned long s3c_irqwake_intmask;
extern unsigned long s3c_irqwake_eintmask; extern unsigned long s3c_irqwake_eintmask;
......
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