diff options
| author | Arnd Bergmann <arnd@arndb.de> | 2014-05-08 10:56:13 -0400 |
|---|---|---|
| committer | Vinod Koul <vinod.koul@intel.com> | 2014-05-21 02:10:49 -0400 |
| commit | fbeb91fe8e4107dc88df4eaa21de02c3fd9d1cd5 (patch) | |
| tree | 1092e89b2538f59e458eb6f3a4381c2c34bfafbe | |
| parent | a8246fedacadaab18b23b280ea3cf916ef5fc30e (diff) | |
dmaengine: sa11x0: remove broken #ifdef
The sa11x0_dma_pm_ops unconditionally reference sa11x0_dma_resume
and sa11x0_dma_suspend, which currently breaks if CONFIG_PM_SLEEP
is disabled.
There is probably a better way to remove the reference in this
case, but the safe choice is to have the suspend/resume code always
built in the driver.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: dmaengine@vger.kernel.org
Cc: Vinod Koul <vinod.koul@intel.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
| -rw-r--r-- | drivers/dma/sa11x0-dma.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/dma/sa11x0-dma.c b/drivers/dma/sa11x0-dma.c index ab26d46bbe15..5ebdfbc1051e 100644 --- a/drivers/dma/sa11x0-dma.c +++ b/drivers/dma/sa11x0-dma.c | |||
| @@ -113,11 +113,9 @@ struct sa11x0_dma_phy { | |||
| 113 | struct sa11x0_dma_desc *txd_load; | 113 | struct sa11x0_dma_desc *txd_load; |
| 114 | unsigned sg_done; | 114 | unsigned sg_done; |
| 115 | struct sa11x0_dma_desc *txd_done; | 115 | struct sa11x0_dma_desc *txd_done; |
| 116 | #ifdef CONFIG_PM_SLEEP | ||
| 117 | u32 dbs[2]; | 116 | u32 dbs[2]; |
| 118 | u32 dbt[2]; | 117 | u32 dbt[2]; |
| 119 | u32 dcsr; | 118 | u32 dcsr; |
| 120 | #endif | ||
| 121 | }; | 119 | }; |
| 122 | 120 | ||
| 123 | struct sa11x0_dma_dev { | 121 | struct sa11x0_dma_dev { |
| @@ -984,7 +982,6 @@ static int sa11x0_dma_remove(struct platform_device *pdev) | |||
| 984 | return 0; | 982 | return 0; |
| 985 | } | 983 | } |
| 986 | 984 | ||
| 987 | #ifdef CONFIG_PM_SLEEP | ||
| 988 | static int sa11x0_dma_suspend(struct device *dev) | 985 | static int sa11x0_dma_suspend(struct device *dev) |
| 989 | { | 986 | { |
| 990 | struct sa11x0_dma_dev *d = dev_get_drvdata(dev); | 987 | struct sa11x0_dma_dev *d = dev_get_drvdata(dev); |
| @@ -1054,7 +1051,6 @@ static int sa11x0_dma_resume(struct device *dev) | |||
| 1054 | 1051 | ||
| 1055 | return 0; | 1052 | return 0; |
| 1056 | } | 1053 | } |
| 1057 | #endif | ||
| 1058 | 1054 | ||
| 1059 | static const struct dev_pm_ops sa11x0_dma_pm_ops = { | 1055 | static const struct dev_pm_ops sa11x0_dma_pm_ops = { |
| 1060 | .suspend_noirq = sa11x0_dma_suspend, | 1056 | .suspend_noirq = sa11x0_dma_suspend, |
