Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Kefeng Wang and committed by
Vinod Koul
95d47fb7 c6504be5

+1 -2
+1 -2
drivers/dma/bcm-sba-raid.c
··· 1459 1459 1460 1460 static int sba_debugfs_stats_show(struct seq_file *file, void *offset) 1461 1461 { 1462 - struct platform_device *pdev = to_platform_device(file->private); 1463 - struct sba_device *sba = platform_get_drvdata(pdev); 1462 + struct sba_device *sba = dev_get_drvdata(file->private); 1464 1463 1465 1464 /* Write stats in file */ 1466 1465 sba_write_stats_in_seqfile(sba, file);