mtd: elm: compile suspend/resume only with PM_SLEEP
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Tue Jun 10 23:59:06 PDT 2014
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=8d808959e4c2151f7b5960dc6dfd7b74d95c92a0
Commit: 8d808959e4c2151f7b5960dc6dfd7b74d95c92a0
Parent: 3579ad4113dd6102866abb0ac7b8f329e7d41e4e
Author: Wolfram Sang <wsa at sang-engineering.com>
AuthorDate: Thu Apr 17 09:39:07 2014 +0200
Committer: Brian Norris <computersforpeace at gmail.com>
CommitDate: Mon May 12 13:16:25 2014 -0700
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 at sang-engineering.com>
Acked-by: Pekon Gupta <pekon at ti.com>
Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
drivers/mtd/devices/elm.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/mtd/devices/elm.c b/drivers/mtd/devices/elm.c
index 1fd4a0f..0a037b1 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)
return 0;
}
+#ifdef CONFIG_PM_SLEEP
/**
* elm_context_save
* saves ELM configurations to preserve them across Hardware powered-down
@@ -509,6 +510,7 @@ static int elm_resume(struct device *dev)
elm_context_restore(info);
return 0;
}
+#endif
static SIMPLE_DEV_PM_OPS(elm_pm_ops, elm_suspend, elm_resume);
More information about the linux-mtd-cvs
mailing list