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

Commit 95d47fb7 authored by Kefeng Wang's avatar Kefeng Wang Committed by Vinod Koul
Browse files

dmaengine: bcm-sba-raid: 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 c6504be5
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1459,8 +1459,7 @@ static void sba_receive_message(struct mbox_client *cl, void *msg)

static int sba_debugfs_stats_show(struct seq_file *file, void *offset)
{
	struct platform_device *pdev = to_platform_device(file->private);
	struct sba_device *sba = platform_get_drvdata(pdev);
	struct sba_device *sba = dev_get_drvdata(file->private);

	/* Write stats in file */
	sba_write_stats_in_seqfile(sba, file);