Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 66c30aa6 authored by Kefeng Wang's avatar Kefeng Wang Committed by Vinod Koul
Browse files

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: default avatarKefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 95d47fb7
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -1491,14 +1491,14 @@ MODULE_DEVICE_TABLE(platform, nbpf_ids);
#ifdef CONFIG_PM
#ifdef CONFIG_PM
static int nbpf_runtime_suspend(struct device *dev)
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);
	clk_disable_unprepare(nbpf->clk);
	return 0;
	return 0;
}
}


static int nbpf_runtime_resume(struct device *dev)
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);
	return clk_prepare_enable(nbpf->clk);
}
}
#endif
#endif