summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/fpga/dfl.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/drivers/fpga/dfl.c b/drivers/fpga/dfl.c
index bcc278acaca9..b62507492a69 100644
--- a/drivers/fpga/dfl.c
+++ b/drivers/fpga/dfl.c
@@ -858,16 +858,6 @@ binfo_create_feature_dev_data(struct build_feature_devs_info *binfo)
return fdata;
}
-static int
-build_info_create_dev(struct build_feature_devs_info *binfo)
-{
- binfo->feature_num = 0;
-
- INIT_LIST_HEAD(&binfo->sub_features);
-
- return 0;
-}
-
/*
* register current feature device, it is called when we need to switch to
* another feature parsing or we have parsed all features on given device
@@ -1326,11 +1316,8 @@ static int parse_feature_fiu(struct build_feature_devs_info *binfo,
return -EINVAL;
binfo->type = type;
-
- /* create platform device for dfl feature dev */
- ret = build_info_create_dev(binfo);
- if (ret)
- return ret;
+ binfo->feature_num = 0;
+ INIT_LIST_HEAD(&binfo->sub_features);
ret = create_feature_instance(binfo, 0, 0, 0);
if (ret)