mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	fpga: dfl: omit unneeded argument pdata from dfl_feature_instance_init()
The argument pdata passed to dfl_feature_instance_init() was never used. Signed-off-by: Peter Colberg <peter.colberg@intel.com> Reviewed-by: Matthew Gerlach <matthew.gerlach@linux.intel.com> Reviewed-by: Basheer Ahmed Muddebihal <basheer.ahmed.muddebihal@linux.intel.com> Acked-by: Xu Yilun <yilun.xu@intel.com> Link: https://lore.kernel.org/r/20241120011035.230574-2-peter.colberg@intel.com Signed-off-by: Xu Yilun <yilun.xu@linux.intel.com>
This commit is contained in:
		
							parent
							
								
									40384c840e
								
							
						
					
					
						commit
						958d8c7002
					
				
					 1 changed files with 1 additions and 3 deletions
				
			
		| 
						 | 
					@ -520,7 +520,6 @@ void dfl_fpga_dev_feature_uinit(struct platform_device *pdev)
 | 
				
			||||||
EXPORT_SYMBOL_GPL(dfl_fpga_dev_feature_uinit);
 | 
					EXPORT_SYMBOL_GPL(dfl_fpga_dev_feature_uinit);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static int dfl_feature_instance_init(struct platform_device *pdev,
 | 
					static int dfl_feature_instance_init(struct platform_device *pdev,
 | 
				
			||||||
				     struct dfl_feature_platform_data *pdata,
 | 
					 | 
				
			||||||
				     struct dfl_feature *feature,
 | 
									     struct dfl_feature *feature,
 | 
				
			||||||
				     struct dfl_feature_driver *drv)
 | 
									     struct dfl_feature_driver *drv)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
| 
						 | 
					@ -587,8 +586,7 @@ int dfl_fpga_dev_feature_init(struct platform_device *pdev,
 | 
				
			||||||
	while (drv->ops) {
 | 
						while (drv->ops) {
 | 
				
			||||||
		dfl_fpga_dev_for_each_feature(pdata, feature) {
 | 
							dfl_fpga_dev_for_each_feature(pdata, feature) {
 | 
				
			||||||
			if (dfl_feature_drv_match(feature, drv)) {
 | 
								if (dfl_feature_drv_match(feature, drv)) {
 | 
				
			||||||
				ret = dfl_feature_instance_init(pdev, pdata,
 | 
									ret = dfl_feature_instance_init(pdev, feature, drv);
 | 
				
			||||||
								feature, drv);
 | 
					 | 
				
			||||||
				if (ret)
 | 
									if (ret)
 | 
				
			||||||
					goto exit;
 | 
										goto exit;
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue