]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
fpga: dfl: remove unneeded function build_info_create_dev()
authorPeter Colberg <peter.colberg@intel.com>
Wed, 20 Nov 2024 01:10:32 +0000 (20:10 -0500)
committerXu Yilun <yilun.xu@linux.intel.com>
Wed, 18 Dec 2024 14:28:48 +0000 (22:28 +0800)
Remove the function build_info_create_dev(), which no longer serves its
original purpose now that the allocation of the platform device has been
moved to feature_dev_register().

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-17-peter.colberg@intel.com
Signed-off-by: Xu Yilun <yilun.xu@linux.intel.com>
drivers/fpga/dfl.c

index bcc278acaca983f7478430f53b247709e37b6049..b62507492a6962e2326b6d03b1e664957bf3c244 100644 (file)
@@ -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)