diff options
| author | Ingo Molnar <mingo@kernel.org> | 2015-01-28 09:30:32 -0500 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2015-01-28 09:30:32 -0500 |
| commit | 41ca5d4e9be11ea6ae040b51d9628a189fd82896 (patch) | |
| tree | f9c35cc37b9622f6cccd91b94548f44b9a534029 /drivers/dma/dw/platform.c | |
| parent | 0fcedc8631ec28ca25d3c0b116e8fa0c19dd5f6d (diff) | |
| parent | 3669ef9fa7d35f573ec9c0e0341b29251c2734a7 (diff) | |
Merge commit 3669ef9fa7d3 ("x86, tls: Interpret an all-zero struct user_desc as 'no segment'") into x86/asm
Pick up the latestest asm fixes before advancing it any further.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'drivers/dma/dw/platform.c')
| -rw-r--r-- | drivers/dma/dw/platform.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/dma/dw/platform.c b/drivers/dma/dw/platform.c index a630161473a4..32ea1aca7a0e 100644 --- a/drivers/dma/dw/platform.c +++ b/drivers/dma/dw/platform.c | |||
| @@ -15,6 +15,7 @@ | |||
| 15 | #include <linux/module.h> | 15 | #include <linux/module.h> |
| 16 | #include <linux/device.h> | 16 | #include <linux/device.h> |
| 17 | #include <linux/clk.h> | 17 | #include <linux/clk.h> |
| 18 | #include <linux/pm_runtime.h> | ||
| 18 | #include <linux/platform_device.h> | 19 | #include <linux/platform_device.h> |
| 19 | #include <linux/dmaengine.h> | 20 | #include <linux/dmaengine.h> |
| 20 | #include <linux/dma-mapping.h> | 21 | #include <linux/dma-mapping.h> |
| @@ -185,6 +186,8 @@ static int dw_probe(struct platform_device *pdev) | |||
| 185 | if (err) | 186 | if (err) |
| 186 | return err; | 187 | return err; |
| 187 | 188 | ||
| 189 | pm_runtime_enable(&pdev->dev); | ||
| 190 | |||
| 188 | err = dw_dma_probe(chip, pdata); | 191 | err = dw_dma_probe(chip, pdata); |
| 189 | if (err) | 192 | if (err) |
| 190 | goto err_dw_dma_probe; | 193 | goto err_dw_dma_probe; |
| @@ -205,6 +208,7 @@ static int dw_probe(struct platform_device *pdev) | |||
| 205 | return 0; | 208 | return 0; |
| 206 | 209 | ||
| 207 | err_dw_dma_probe: | 210 | err_dw_dma_probe: |
| 211 | pm_runtime_disable(&pdev->dev); | ||
| 208 | clk_disable_unprepare(chip->clk); | 212 | clk_disable_unprepare(chip->clk); |
| 209 | return err; | 213 | return err; |
| 210 | } | 214 | } |
| @@ -217,6 +221,7 @@ static int dw_remove(struct platform_device *pdev) | |||
| 217 | of_dma_controller_free(pdev->dev.of_node); | 221 | of_dma_controller_free(pdev->dev.of_node); |
| 218 | 222 | ||
| 219 | dw_dma_remove(chip); | 223 | dw_dma_remove(chip); |
| 224 | pm_runtime_disable(&pdev->dev); | ||
| 220 | clk_disable_unprepare(chip->clk); | 225 | clk_disable_unprepare(chip->clk); |
| 221 | 226 | ||
| 222 | return 0; | 227 | return 0; |
