summaryrefslogtreecommitdiffstats
path: root/drivers/dma/bcm-sba-raid.c
diff options
context:
space:
mode:
authorKefeng Wang <wangkefeng.wang@huawei.com>2019-04-28 12:00:24 +0800
committerVinod Koul <vkoul@kernel.org>2019-04-29 10:47:15 +0530
commit95d47fb71d185ccd6b0f97397cfb1569f4761ba1 (patch)
tree1b9c4c37ef16038dec6c49b52178b5e118932e93 /drivers/dma/bcm-sba-raid.c
parentc6504be53972cd57326196eb2a18b2b182c26c5c (diff)
downloadlinux-95d47fb71d185ccd6b0f97397cfb1569f4761ba1.tar.bz2
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: Kefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/bcm-sba-raid.c')
-rw-r--r--drivers/dma/bcm-sba-raid.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/dma/bcm-sba-raid.c b/drivers/dma/bcm-sba-raid.c
index 72878ac5c78d..fa81d0177765 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);