summaryrefslogtreecommitdiff
path: root/drivers/fpga/dfl-fme-main.c
diff options
context:
space:
mode:
authorPeter Colberg <peter.colberg@intel.com>2024-04-15 19:59:37 -0400
committerXu Yilun <yilun.xu@linux.intel.com>2024-04-23 15:36:33 +0800
commitdbca8048b33c8e612d3bb7d314cfe002d9478daa (patch)
treea2b8dd68d1140bf153588f09a9810a3140e1403b /drivers/fpga/dfl-fme-main.c
parent7c2dafa60e7a74bd5fd584e35d3176a439495a16 (diff)
downloadlwn-dbca8048b33c8e612d3bb7d314cfe002d9478daa.tar.gz
lwn-dbca8048b33c8e612d3bb7d314cfe002d9478daa.zip
fpga: dfl: remove unused member pdata from struct dfl_{afu,fme}
The member pdata in struct dfl_{afu,fme} is set in function {afu,fme}_dev_init(), respectively, but never used. Fixes: 857a26222ff7 ("fpga: dfl: afu: add afu sub feature support") Fixes: 29de76240e86 ("fpga: dfl: fme: add partial reconfiguration sub feature support") Signed-off-by: Peter Colberg <peter.colberg@intel.com> Reviewed-by: Matthew Gerlach <matthew.gerlach@linux.intel.com> Acked-by: Xu Yilun <yilun.xu@intel.com> Link: https://lore.kernel.org/r/20240415235937.3121-1-peter.colberg@intel.com Signed-off-by: Xu Yilun <yilun.xu@linux.intel.com>
Diffstat (limited to 'drivers/fpga/dfl-fme-main.c')
-rw-r--r--drivers/fpga/dfl-fme-main.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/fpga/dfl-fme-main.c b/drivers/fpga/dfl-fme-main.c
index a2b5da0093da..864924f68f5e 100644
--- a/drivers/fpga/dfl-fme-main.c
+++ b/drivers/fpga/dfl-fme-main.c
@@ -679,8 +679,6 @@ static int fme_dev_init(struct platform_device *pdev)
if (!fme)
return -ENOMEM;
- fme->pdata = pdata;
-
mutex_lock(&pdata->lock);
dfl_fpga_pdata_set_private(pdata, fme);
mutex_unlock(&pdata->lock);