fpga: dfl: remove unused function is_dfl_feature_present()
authorPeter Colberg <peter.colberg@intel.com>
Mon, 15 Apr 2024 23:57:43 +0000 (19:57 -0400)
committerXu Yilun <yilun.xu@linux.intel.com>
Tue, 23 Apr 2024 07:36:33 +0000 (15:36 +0800)
The function is_dfl_feature_present() was added but never used.

Fixes: 5b57d02a2f94 ("fpga: dfl: add feature device infrastructure")
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/20240415235743.3045-1-peter.colberg@intel.com
Signed-off-by: Xu Yilun <yilun.xu@linux.intel.com>
drivers/fpga/dfl.h

index 1d724a28f00ad33b49a159d0d74e3f84dce80f24..5063d73b0d82e79eefd23421485c664b9f703f1d 100644 (file)
@@ -437,11 +437,6 @@ void __iomem *dfl_get_feature_ioaddr_by_id(struct device *dev, u16 id)
        return NULL;
 }
 
-static inline bool is_dfl_feature_present(struct device *dev, u16 id)
-{
-       return !!dfl_get_feature_ioaddr_by_id(dev, id);
-}
-
 static inline
 struct device *dfl_fpga_pdata_to_parent(struct dfl_feature_platform_data *pdata)
 {