From: Kefeng Wang Date: Sun, 28 Apr 2019 04:00:24 +0000 (+0800) Subject: dmaengine: bcm-sba-raid: Use dev_get_drvdata() X-Git-Tag: v5.15~6413^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=95d47fb71d185ccd6b0f97397cfb1569f4761ba1;p=platform%2Fkernel%2Flinux-starfive.git dmaengine: bcm-sba-raid: Use dev_get_drvdata() Using dev_get_drvdata directly. Cc: Vinod Koul Cc: dmaengine@vger.kernel.org Signed-off-by: Kefeng Wang Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/bcm-sba-raid.c b/drivers/dma/bcm-sba-raid.c index 72878ac..fa81d01 100644 --- a/drivers/dma/bcm-sba-raid.c +++ b/drivers/dma/bcm-sba-raid.c @@ -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);