diff options
author | Wolfram Sang <wsa@sang-engineering.com> | 2014-04-17 03:39:07 -0400 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-05-12 16:16:25 -0400 |
commit | 8d808959e4c2151f7b5960dc6dfd7b74d95c92a0 (patch) | |
tree | 09338183699379b966b486846fb6efaf0d706b00 /drivers/mtd | |
parent | 3579ad4113dd6102866abb0ac7b8f329e7d41e4e (diff) |
mtd: elm: compile suspend/resume only with PM_SLEEP
Fixes:
drivers/mtd/devices/elm.c:480:12: warning: 'elm_suspend' defined but not used [-Wunused-function]
drivers/mtd/devices/elm.c:488:12: warning: 'elm_resume' defined but not used [-Wunused-function]
Signed-off-by: Wolfram Sang <wsa@sang-engineering.com>
Acked-by: Pekon Gupta <pekon@ti.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/devices/elm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mtd/devices/elm.c b/drivers/mtd/devices/elm.c index 1fd4a0f77967..0a037b15c11b 100644 --- a/drivers/mtd/devices/elm.c +++ b/drivers/mtd/devices/elm.c | |||
@@ -418,6 +418,7 @@ static int elm_remove(struct platform_device *pdev) | |||
418 | return 0; | 418 | return 0; |
419 | } | 419 | } |
420 | 420 | ||
421 | #ifdef CONFIG_PM_SLEEP | ||
421 | /** | 422 | /** |
422 | * elm_context_save | 423 | * elm_context_save |
423 | * saves ELM configurations to preserve them across Hardware powered-down | 424 | * saves ELM configurations to preserve them across Hardware powered-down |
@@ -509,6 +510,7 @@ static int elm_resume(struct device *dev) | |||
509 | elm_context_restore(info); | 510 | elm_context_restore(info); |
510 | return 0; | 511 | return 0; |
511 | } | 512 | } |
513 | #endif | ||
512 | 514 | ||
513 | static SIMPLE_DEV_PM_OPS(elm_pm_ops, elm_suspend, elm_resume); | 515 | static SIMPLE_DEV_PM_OPS(elm_pm_ops, elm_suspend, elm_resume); |
514 | 516 | ||