summaryrefslogtreecommitdiffstats
path: root/drivers/fpga/of-fpga-region.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/fpga/of-fpga-region.c')
-rw-r--r--drivers/fpga/of-fpga-region.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/fpga/of-fpga-region.c b/drivers/fpga/of-fpga-region.c
index 75f64abf9c81..e405309baadc 100644
--- a/drivers/fpga/of-fpga-region.c
+++ b/drivers/fpga/of-fpga-region.c
@@ -22,11 +22,6 @@ static const struct of_device_id fpga_region_of_match[] = {
22}; 22};
23MODULE_DEVICE_TABLE(of, fpga_region_of_match); 23MODULE_DEVICE_TABLE(of, fpga_region_of_match);
24 24
25static int fpga_region_of_node_match(struct device *dev, const void *data)
26{
27 return dev->of_node == data;
28}
29
30/** 25/**
31 * of_fpga_region_find - find FPGA region 26 * of_fpga_region_find - find FPGA region
32 * @np: device node of FPGA Region 27 * @np: device node of FPGA Region
@@ -37,7 +32,7 @@ static int fpga_region_of_node_match(struct device *dev, const void *data)
37 */ 32 */
38static struct fpga_region *of_fpga_region_find(struct device_node *np) 33static struct fpga_region *of_fpga_region_find(struct device_node *np)
39{ 34{
40 return fpga_region_class_find(NULL, np, fpga_region_of_node_match); 35 return fpga_region_class_find(NULL, np, device_match_of_node);
41} 36}
42 37
43/** 38/**