Commit a850c427 authored by Arnd Bergmann's avatar Arnd Bergmann

ARM: common: edma: edma_pm_resume may be unused

The recently introduced resume hook in the edma driver
is not referenced when CONFIG_PM_SLEEP is not set, which
results in a compile warning in keystone builds.

This adds an appropriate #ifdef.

Cc: Nishanth Menon <nm@ti.com>
Cc: Daniel Mack <zonque@gmail.com>
Cc: Joel Fernandes <joelf@ti.com>
Acked-by: default avatarSekhar Nori <nsekhar@ti.com>
Fixes: a2b11751: ("ARM: common: edma: add suspend resume hook")
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent a6f5e6bd
...@@ -1801,6 +1801,7 @@ static int edma_probe(struct platform_device *pdev) ...@@ -1801,6 +1801,7 @@ static int edma_probe(struct platform_device *pdev)
return 0; return 0;
} }
#ifdef CONFIG_PM_SLEEP
static int edma_pm_resume(struct device *dev) static int edma_pm_resume(struct device *dev)
{ {
int i, j; int i, j;
...@@ -1840,6 +1841,7 @@ static int edma_pm_resume(struct device *dev) ...@@ -1840,6 +1841,7 @@ static int edma_pm_resume(struct device *dev)
return 0; return 0;
} }
#endif
static const struct dev_pm_ops edma_pm_ops = { static const struct dev_pm_ops edma_pm_ops = {
SET_LATE_SYSTEM_SLEEP_PM_OPS(NULL, edma_pm_resume) SET_LATE_SYSTEM_SLEEP_PM_OPS(NULL, edma_pm_resume)
......
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