diff options
author | Kefeng Wang <wangkefeng.wang@huawei.com> | 2019-04-28 12:00:25 +0800 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2019-04-29 10:47:15 +0530 |
commit | 66c30aa679172df624cd68b0e1cfe757f6d1bc72 (patch) | |
tree | bc8446279f458a0f1ae4096b300ac3a4e8f88733 /drivers/dma/nbpfaxi.c | |
parent | 95d47fb71d185ccd6b0f97397cfb1569f4761ba1 (diff) |
dmaengine: nbpfaxi: Use dev_get_drvdata()
Using dev_get_drvdata directly.
Cc: Vinod Koul <vinod.koul@intel.com>
Cc: dmaengine@vger.kernel.org
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/nbpfaxi.c')
-rw-r--r-- | drivers/dma/nbpfaxi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/nbpfaxi.c b/drivers/dma/nbpfaxi.c index a67b292190f4..594409a6e975 100644 --- a/drivers/dma/nbpfaxi.c +++ b/drivers/dma/nbpfaxi.c @@ -1491,14 +1491,14 @@ MODULE_DEVICE_TABLE(platform, nbpf_ids); #ifdef CONFIG_PM static int nbpf_runtime_suspend(struct device *dev) { - struct nbpf_device *nbpf = platform_get_drvdata(to_platform_device(dev)); + struct nbpf_device *nbpf = dev_get_drvdata(dev); clk_disable_unprepare(nbpf->clk); return 0; } static int nbpf_runtime_resume(struct device *dev) { - struct nbpf_device *nbpf = platform_get_drvdata(to_platform_device(dev)); + struct nbpf_device *nbpf = dev_get_drvdata(dev); return clk_prepare_enable(nbpf->clk); } #endif |