summaryrefslogtreecommitdiffstats
path: root/drivers/dma/stm32-dmamux.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dma/stm32-dmamux.c')
-rw-r--r--drivers/dma/stm32-dmamux.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/dma/stm32-dmamux.c b/drivers/dma/stm32-dmamux.c
index 715aad7a9192..b552949da14b 100644
--- a/drivers/dma/stm32-dmamux.c
+++ b/drivers/dma/stm32-dmamux.c
@@ -295,8 +295,7 @@ static int stm32_dmamux_probe(struct platform_device *pdev)
295#ifdef CONFIG_PM 295#ifdef CONFIG_PM
296static int stm32_dmamux_runtime_suspend(struct device *dev) 296static int stm32_dmamux_runtime_suspend(struct device *dev)
297{ 297{
298 struct platform_device *pdev = 298 struct platform_device *pdev = to_platform_device(dev);
299 container_of(dev, struct platform_device, dev);
300 struct stm32_dmamux_data *stm32_dmamux = platform_get_drvdata(pdev); 299 struct stm32_dmamux_data *stm32_dmamux = platform_get_drvdata(pdev);
301 300
302 clk_disable_unprepare(stm32_dmamux->clk); 301 clk_disable_unprepare(stm32_dmamux->clk);
@@ -306,8 +305,7 @@ static int stm32_dmamux_runtime_suspend(struct device *dev)
306 305
307static int stm32_dmamux_runtime_resume(struct device *dev) 306static int stm32_dmamux_runtime_resume(struct device *dev)
308{ 307{
309 struct platform_device *pdev = 308 struct platform_device *pdev = to_platform_device(dev);
310 container_of(dev, struct platform_device, dev);
311 struct stm32_dmamux_data *stm32_dmamux = platform_get_drvdata(pdev); 309 struct stm32_dmamux_data *stm32_dmamux = platform_get_drvdata(pdev);
312 int ret; 310 int ret;
313 311