aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/dfl.c
diff options
context:
space:
mode:
authorPeter Colberg <[email protected]>2024-11-20 01:10:17 +0000
committerXu Yilun <[email protected]>2024-12-10 06:54:37 +0000
commit958d8c70024e6123f85b46f60dcb889c60e6bcff (patch)
treecb0df24dba38eadf715a39770fa5d70dc129e6e9 /drivers/fpga/dfl.c
parentLinux 6.13-rc1 (diff)
downloadkernel-958d8c70024e6123f85b46f60dcb889c60e6bcff.tar.gz
kernel-958d8c70024e6123f85b46f60dcb889c60e6bcff.zip
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 <[email protected]> Reviewed-by: Matthew Gerlach <[email protected]> Reviewed-by: Basheer Ahmed Muddebihal <[email protected]> Acked-by: Xu Yilun <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Xu Yilun <[email protected]>
Diffstat (limited to 'drivers/fpga/dfl.c')
-rw-r--r--drivers/fpga/dfl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/fpga/dfl.c b/drivers/fpga/dfl.c
index c406b949026f..8512a1da6570 100644
--- a/drivers/fpga/dfl.c
+++ b/drivers/fpga/dfl.c
@@ -520,7 +520,6 @@ void dfl_fpga_dev_feature_uinit(struct platform_device *pdev)
EXPORT_SYMBOL_GPL(dfl_fpga_dev_feature_uinit);
static int dfl_feature_instance_init(struct platform_device *pdev,
- struct dfl_feature_platform_data *pdata,
struct dfl_feature *feature,
struct dfl_feature_driver *drv)
{
@@ -587,8 +586,7 @@ int dfl_fpga_dev_feature_init(struct platform_device *pdev,
while (drv->ops) {
dfl_fpga_dev_for_each_feature(pdata, feature) {
if (dfl_feature_drv_match(feature, drv)) {
- ret = dfl_feature_instance_init(pdev, pdata,
- feature, drv);
+ ret = dfl_feature_instance_init(pdev, feature, drv);
if (ret)
goto exit;
}