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

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>

authored by

Peter Colberg and committed by
Xu Yilun
dbca8048 7c2dafa6

-9
-2
drivers/fpga/dfl-afu-main.c
··· 858 858 if (!afu) 859 859 return -ENOMEM; 860 860 861 - afu->pdata = pdata; 862 - 863 861 mutex_lock(&pdata->lock); 864 862 dfl_fpga_pdata_set_private(pdata, afu); 865 863 afu_mmio_region_init(pdata);
-3
drivers/fpga/dfl-afu.h
··· 67 67 * @regions: the mmio region linked list of this afu feature device. 68 68 * @dma_regions: root of dma regions rb tree. 69 69 * @num_umsgs: num of umsgs. 70 - * @pdata: afu platform device's pdata. 71 70 */ 72 71 struct dfl_afu { 73 72 u64 region_cur_offset; ··· 74 75 u8 num_umsgs; 75 76 struct list_head regions; 76 77 struct rb_root dma_regions; 77 - 78 - struct dfl_feature_platform_data *pdata; 79 78 }; 80 79 81 80 /* hold pdata->lock when call __afu_port_enable/disable */
-2
drivers/fpga/dfl-fme-main.c
··· 679 679 if (!fme) 680 680 return -ENOMEM; 681 681 682 - fme->pdata = pdata; 683 - 684 682 mutex_lock(&pdata->lock); 685 683 dfl_fpga_pdata_set_private(pdata, fme); 686 684 mutex_unlock(&pdata->lock);
-2
drivers/fpga/dfl-fme.h
··· 24 24 * @mgr: FME's FPGA manager platform device. 25 25 * @region_list: linked list of FME's FPGA regions. 26 26 * @bridge_list: linked list of FME's FPGA bridges. 27 - * @pdata: fme platform device's pdata. 28 27 */ 29 28 struct dfl_fme { 30 29 struct platform_device *mgr; 31 30 struct list_head region_list; 32 31 struct list_head bridge_list; 33 - struct dfl_feature_platform_data *pdata; 34 32 }; 35 33 36 34 extern const struct dfl_feature_ops fme_pr_mgmt_ops;