Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Kefeng Wang and committed by
Vinod Koul
66c30aa6 95d47fb7

+2 -2
+2 -2
drivers/dma/nbpfaxi.c
··· 1491 1491 #ifdef CONFIG_PM 1492 1492 static int nbpf_runtime_suspend(struct device *dev) 1493 1493 { 1494 - struct nbpf_device *nbpf = platform_get_drvdata(to_platform_device(dev)); 1494 + struct nbpf_device *nbpf = dev_get_drvdata(dev); 1495 1495 clk_disable_unprepare(nbpf->clk); 1496 1496 return 0; 1497 1497 } 1498 1498 1499 1499 static int nbpf_runtime_resume(struct device *dev) 1500 1500 { 1501 - struct nbpf_device *nbpf = platform_get_drvdata(to_platform_device(dev)); 1501 + struct nbpf_device *nbpf = dev_get_drvdata(dev); 1502 1502 return clk_prepare_enable(nbpf->clk); 1503 1503 } 1504 1504 #endif