mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
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>
This commit is contained in:
parent
95d47fb71d
commit
66c30aa679
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue